• Resolved shaneparsons

    (@shaneparsons)


    Hey,

    I’m attempting to use cnr_get_featured() to get 3 of my “featured” (sticky?) posts on my home page, and I can’t seem to get it to work.

    I was using it like so… (3 being the limit, 11 being the section):
    cnr_get_featured(3, 11)

    Do you have any ideas why it’s not working for me?

    https://wordpress.org/plugins/cornerstone/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Archetyped

    (@archetyped)

    Hi, cnr_get_featured() does not use sticky posts, but rather posts assigned to a category with the slug: feature.

    However, this functionality is a remnant of CNR’s early days and will likely be refactored for flexibility or removed entirely in a future update.

    Thread Starter shaneparsons

    (@shaneparsons)

    So is there any way to display posts on a different page than it was intended without having to revert back to categories?

    Thread Starter shaneparsons

    (@shaneparsons)

    ??

    Plugin Author Archetyped

    (@archetyped)

    You can use WordPress’ WP_Query class (documentation) to retrieve a section’s posts. Simply set the post_parent parameter to the section you want to get posts for.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘cnr_get_featured()’ is closed to new replies.