WordPress.org

Ready to get started?Download WordPress

Forums

Category Sticky Post
[resolved] Styling Sticky Posts (3 posts)

  1. gavinwilshen
    Member
    Posted 1 year ago #

    Love the plugin, thanks!

    Is there an easy way to put the Sticky Post's title to a h1 tag and use 'the_content' instead of the_excerpt with this plugin?

    Any help, greatly received. Thanks

    http://wordpress.org/extend/plugins/category-sticky-post/

  2. gavinwilshen
    Member
    Posted 1 year ago #

    Tried this in my loop, as suggested here: http://wordpress.org/support/topic/making-sticky-posts-full-text-instead-of-excerpts?replies=12

    but no joy unfortunately:

    <?php if (property_exists($post, 'sticky_in_cat')) {
    the_content();
    } else {
    the_excerpt();
    } ?>

  3. tommcfarlin
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Gavin,

    Unfortunately, this plugin doesn't really offer this particular functionality. This is more of a theme issue.

    All this plugin does is basically order the posts so the posts that's marked as "sticky" in a category is displayed first.

    You'd need to do some additional work in order to get this to happen which is outside support for this plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.