• Resolved jackarray

    (@jackarray)


    Hi, Thanks for great plugin. I saved my post content in meta-data values. I want to know how how i can use this meta-data to show its related posts. Currently it is using only title but not meta-values.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ajay

    (@ajay)

    I’ve not seen any example of this. What does this meta-data table look like?
    If not the normal post_content – so is this in a separate table or in the post_content column of wp_posts. can it be imported?

    Thread Starter jackarray

    (@jackarray)

    its a text paragraph. I saved it in meta-data instead of post content. No one can view meta-data normally when a post is published. We need to call a function to show meta-data of that post.

    Plugin Author Ajay

    (@ajay)

    Understood. The plugin can’t do this out of the box.

    There isn’t an easy piece of code to do this as the meta data sits in a separate table with no fulltext index.

    Theoretically, steps involved would be:

    1. Add a full-text index on the meta table
    2. Add filter functions for:
    1. crp_posts_join to join the meta tables
    2. crp_posts_where to add an extra condition which I am thinking is a sub-query that returns a short-list of posts by using a query to find posts related to this meta field
    • This reply was modified 7 years, 9 months ago by Ajay.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Contextual Related Posts For posts with meta-data’ is closed to new replies.