WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Can I get just the related post_ids?

[Resolved] Can I get just the related post_ids?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Zemanta
    Member

    @zemanta

    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

    Plugin Author jureham
    Member

    @jureham

    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Resolved] Can I get just the related post_ids?’ is closed to new replies.