Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter badaro5

    (@badaro5)

    Just a quick update about my problem..

    I noticed that the posts are actually related somehow. Cause if I go to the custom post page I see that the related posts list are working well, the way it should be. Bring all post within the same category together. But when I visit the normal posts pages the related posts list doesnt bring my custom post. Just the normal posts. So the problem is the related posts list. Its not showing my custom post with the normal posts all together.
    To show my related post list Im using this:
    yarpp_related(array(‘post_type’ => array(‘post’, ‘film’)));

    film is the name of my custom post type. I tried to change the default settings of yarpp like the precision and all the other fields with all possible combinations and nothing changed. Does anybody have any tip?

    thanks.

    Plugin Author YARPP

    (@jeffparker)

    When you registered the custom post type, did you set 'yarpp_support' => true?

    Thread Starter badaro5

    (@badaro5)

    Yes sir. Any other idea?

    Peace

    Thread Starter badaro5

    (@badaro5)

    Another update about my problem guys, this is a message I’ve posted in the pods support:

    I did a fresh install of wordpress and just installed pods and yarpp. After that I created a custom post named movie. For movie I created 5 fields. Name (plain text required), Cover(file image video required), Date (Date required), summary(plain paragraph text required) and genre (relationship custom defined list with 8 options and required too). In the advanced options tab I checked public, publlcly queryable, user capability (post), additional user capabilities, rewrite, rewrite with front, rewrite pages, query var, exportable, default status(draft), supports(title, editor, author, featured image, excerpt, custom fields, comments, and yarpp support), and all the 3 options in built in taxonomies.

    After that Ive created I custom post and give it the General category. And I did the same for 5 normal posts. These 5 normal posts have the same structure: title, text, excerpt, no tags, just the General category and a featured image.

    I did change only 2 fields in yarpp configuration. 6 for the maximum number of related posts and I did check “display results from all posts”.

    I changed the theme to 2012 theme.

    And to finish I edit the functions.php with this peice of code:
    add_filter( ‘pre_get_posts’, ‘my_get_posts’ );

    function my_get_posts( $query ) {

    if ( !is_admin() && $query->is_main_query() )
    $query->set( ‘post_type’, array( ‘post’, ‘page’, ‘movie’) );

    return $query;
    }

    And thats all. After that I visited the front end and the same thing happened. The related post list doesnt bring my custom post with the normal ones together. When I visit a post page I see all normal posts related. Except the CP. When I visit the CP page the related post list is empty, not even the message “no post related found” appears. I run the cache cleaner in pods and changed the precision to 1 in Yarpp configuration and nothing changed.
    But when I visit the General category page all posts are listed. CP included. My wordpress and plugins are all updated.

    Im not using custom template for Yarpp too. And Im not manually calling the related posts like:
    yarpp_related(array(‘post_type’ => array(‘post’, ‘movie’)));
    I will try it later but I dont think thats the problem.

    I just dont know what else I can do. Did I miss something important, some configuration or anything like that? If you guys have any other idea of what could be happening please let me know.

    thanks

    Thread Starter badaro5

    (@badaro5)

    Guys just made the final test here. I called manually the related_post list in my single.php not using custom templates:
    yarpp_related(array(‘post_type’ => array(‘post’, ‘movie’)));

    Now Im very positive that exists an incompatibility issue. As I said before I did a fresh install of wordpress and just put the 2 plugins. The CP is not in the related post list when I visit a normal post page.
    And you cant see the CP inside yarpp configuration too.

    The pods plugin author said that he will do everything to to help resolve any incompatibilities or conflicts that may exist. He can be contact here:
    https://github.com/pods-framework/pods/issues/2276

    Or via email Josh@Pods.io.

    Can you guys please check that out?

    Thanks

    Hello,

    I have the same problem, Is there any solution? This is very frustrating and tried everything to solve but, but seems impossible.

    I have the same issue. Posted it also in the YARPP support forum:

    https://wordpress.org/support/topic/works-on-custom-post-type-but-not-regular-post

    I did some experiments with Pods and Yarpp and found what is causing the problem.

    I think we have to wait for a fix in Pods. But if you want to fix it quickly you can make a small change in yarpp to get it working.
    See the explanation in my last comment here:

    https://github.com/pods-framework/pods/issues/2276

    Thank you rembem, I will try it.

    The bug is fixed by Pods:

    https://github.com/pods-framework/pods/issues/2276

    I guess it will be included in the next version.

    Would be great if YARPP itself would add code to look at ‘supports’ post type argument array as well, maybe for a value like ‘yarpp’ in the array.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘YARPP and Pods’ is closed to new replies.