Welcome, guest!

Feel free to read the blog, browse for themes, or join the club.

sticky post functions?

  1. Hi Justin,
    Just wondering if it is possible to add a function to sticky post only?
    I want to change the look of my sticky posts on the home page, I have set byline & meta data to

    .sticky .byline, .sticky .post-meta-data { display:none; }

    but, I would still like to display the number of comments for these posts, just in a different spot than the rest of the posts.

    Is it possible to add a function that would display the comment count aligned to the right of the post title on stickies only while displaying it in the usual spot (under the excerpt) on all other posts?

  2. You must be a logged-in exclusive member to view this reply.

  3. Perfect, thank you.
    I thought it would be complicated & would never have thought of this...
    Added:

    .sticky-comments-link { float: right; }

    to my css and it now displays as I want, couldn't be easier...

  4. Hi Justin, I have decided to use this comments to the right of the post title on all posts (not just stickies) except for the ones with no comments.
    I saw a reply you made to another question a few days ago that did check the comment count but can't find it now...
    Any tips?

  5. Hi Justin,
    just realised you mightn't have seen my last comment here as the topic was marked resolved, should probably have opened a new post but don't want to create a duplicate now...
    anyway, how do I do a comment count, something like:

    add_action( 'hybrid_before_entry', 'my_comments_count' );
    
    function my_comments_count() {
    	global $post;
    
    if comment count is greater than 10
    
    		comments_popup_link( 'No Responses', 'One Response', '% Responses', 'sticky-comments-link', false );
    }
  6. You must be a logged-in exclusive member to view this reply.

  7. Thats it, perfect, thanks again...

Reply

You must log in to post.

Limited Access

If you have an account, please take a moment to log in.

Non-exclusive members have limited access to the support forums.

To enjoy the full range of support, sign up for an exclusive membership in the theme club.

Support Forums

  • Core Framework (54 posts)
  • Hybrid Theme (22,711 posts)
  • Bliss Theme (255 posts)
  • Options Theme (10,362 posts)
  • Visionary Theme (767 posts)
  • WordPress (144 posts)
  • WordPress Plugins (2,146 posts)
  • bbPress Themes (308 posts)
  • General Discussion (5,572 posts)
  • Critical Theme (0 posts)
  • Hybrid News Theme (132 posts)
  • Hybrid Original Theme (26 posts)
  • Leviathan Theme (16 posts)
  • Life Collage Theme (9 posts)
  • Old School Theme (3 posts)
  • Outline Theme (108 posts)
  • Skeleton Theme (40 posts)
  • Structure Theme (2,768 posts)
  • Members Plugin (2 posts)
  • Cleaner Gallery Plugin (14 posts)
  • Get the Image Plugin (3 posts)
  • Message Board Plugin (0 posts)
  • Widgets Reloaded Plugin (0 posts)
  • Breadcrumb Trail Plugin (0 posts)
  • Query Posts Plugin (80 posts)
  • Hybrid Hook Plugin (7 posts)
  • Hybrid Hook Widgets Plugin (0 posts)
  • Hybrid Tabs (5 posts)