WordPress.org

Ready to get started?Download WordPress

Forums

Sticky Remove Author, Date, Category (3 posts)

  1. tonyrage
    Member
    Posted 2 years ago #

    I am using Platform/PageLines and I have one sticky. I would like just that sticky to not show the author, date and comments sections. Currently those are the three attributes that are on the byline for all posts as defined in the Blog and Posts section of the Page Lines settings.

    Can someone please help me with code for the style sheet that I can add to make this happen?

    Again, I want the posts to have that byline info, but not the sticky.

    I currently have a function that makes the sticky show the whole post and not an excerpt. I got this off a forum.

    function dan_sticky_filter($content) {
    if(is_sticky()) $content = the_content();
    return $content;
    }
    add_filter('the_excerpt', 'dan_sticky_filter');

    [Please post code snippets between backticks or use the code button.]

    A bonus would be to remove the "continue reading" at the bottom of the sticky.

    I am fairly new to wordpress and php and css so step by step instructions would be really welcome.

    Thanks!

  2. esmi
    Forum Moderator
    Posted 2 years ago #

  3. tonyrage
    Member
    Posted 2 years ago #

    Thanks! Probably a good idea!

Topic Closed

This topic has been closed to new replies.

About this Topic