WordPress.org

Ready to get started?Download WordPress

Forums

WordPress Related Posts
[resolved] Can I get just the related post_ids? (3 posts)

  1. konrad_ha
    Member
    Posted 1 year ago #

    Hi there,

    I'd really like to just get the post_ids of the related posts and handle the implementation in the frontend completely myself. Is this even possible with your plugin?

    Thanks and greetings,

    Konrad

    http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/

  2. Zemanta
    Member
    Plugin Author

    Posted 1 year ago #

    Hey Konrad!

    I'm afraid that's not possible, but you can edit our plugin through the CSS customization or through the HTML code itself.

    Is this something you're looking for? Let us know, we'd love to help you out!

    Take care & have a nice day!

    Best,
    Silvo

  3. jureham
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    there is no stable api in the plugin that would do that,
    which means we might break it between versions, but if you're willing to risk that, you have a couple of options.

    wp_rp_fetch_posts_and_title()
    Returns

    array(
    	"posts" => [array of post objects],
    	"title" => [title for related posts]
    );

    Or if you want even more control use one or all of this functions:

    wp_rp_fetch_random_posts() // returns an array of random post objects
    wp_rp_fetch_related_posts() // related posts calculated based only on tags
    wp_rp_fetch_related_posts_v2() // related posts based on tags, categories, title and text

    But again, this might change in future versions.

    Best, Jure

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.