• Resolved Suwash

    (@suascat_wp)


    I am displaying all of my blog posts on front page of the site. But problem here is with sticky post which I want it to appear on the first and rest below it which is not happening here. Please help, as am really in middle of this problem . My code is simple as documented by this plugin.

    [ic_add_posts ignore_sticky_posts='no' paginate="yes"]

    Somebody please help, am just stuck here with this requirement.

    Awaiting for the reply.

    https://www.ads-software.com/plugins/posts-in-page/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Patrick Jackson

    (@pjackson1972)

    Hi suascat_wp,

    The way I’ve seen other people handle a requirement like this is to create a category for sticky posts, and use two short codes: the first one just shows the sticky posts, and the second shows all others by ignoring sticky posts.

    So you might add a category called “sticky”, add the sticky posts to that category, then add the following shortcodes to your page.

    [ic_add_posts category='sticky' ignore_sticky_posts='no']
    [ic_add_posts]

    The plugin doesn’t support showing only sticky posts, but this feature is on the list of proposed enhancements for a future release. I’ll add your post as a vote to have that feature added.

    hey i think there is problem in the above ans

    [ic_add_posts category='sticky' ignore_sticky_posts='no' showposts='1']
    [ic_add_posts ignore_sticky_posts='yes' pagination='yes']

    it can’t even limit the post to 1
    and also it cannot ignore the stikcy category now since it is now officailly a category named:sticky and i cant find the shortcode to ignore the specific category( sticky in my case for second shortcode ) in your documentation.

    Plugin Contributor Patrick Jackson

    (@pjackson1972)

    Hi ugene,

    I double-checked the first shortcode, and it seems to work as expected for me. After creating several posts, setting the sticky option, and adding them to the sticky category, the shortcode displays only the latest sticky post.

    You might want to double-check your shortcode in the text mode of the editor (rather than visual) as sometimes extra characters can be inserted that don’t show up in visual mode. Failing that, you may want to check for a plugin or theme conflict.

    On the second shortcode, if you delete the ignore_sticky_posts=’yes’ attribute, it should ignore the sticky posts since the shortcode does that by default. It’s natural to expect that setting the attribute to yes would also work, but it doesn’t. I’ve submitted a bug report about that.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Having problem showing sticky post on the top and then other posts.’ is closed to new replies.