Responsive slider options

Community Forums Forums General Discussion Responsive slider options

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  NWTD 1 year, 6 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41842

    NWTD
    Participant
    Post count: 61

    Is there a way to display a posts meta on the slider? Like the date, category(ies), and author?

    #41966

    dev
    Participant
    Post count: 468

    It depends on what slider you are using. Most of them work off of posts… and anything in the post shows up in a caption box. If so, just put the meta data in each post via the WP editor.

    I think the Soliloquy slider might have the ability to grab the meta and put it in the caption for you.

     

    NewMedia Website Design

     

    #42025

    NWTD
    Participant
    Post count: 61

    I’m using the Genesis Responsive Slider. I see the option for displaying a post’s content and title. Maybe there’s a hack that can go into the plugin file to get the meta?

    #42026

    NWTD
    Participant
    Post count: 61

    I ended up editing the plugin file. Not ideal since I may be using this plugin on multiple sites of my network…but it works for now. Maybe this could be a feature request for the next version?

    In `genesis-responsive-slider.php` on line 323, I added this:

    `<div class=”meta”>
    <div class=”date”><?php echo get_the_date(); ?></div>
    <div class=”category”>
    <?php
    $category = get_the_category();
    if($category[0]){
    echo ‘<a href=”‘.get_category_link($category[0]->term_id ).'”>’.$category[0]->cat_name.'</a>';
    }
    ?>
    </div>
    </div>`

    It works for what I need in the meantime.

    • This reply was modified 1 year, 6 months ago by  NWTD.
    • This reply was modified 1 year, 6 months ago by  NWTD.
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.