Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter sbckmstr

    (@sbckmstr)

    Oh my, no. I will go without related posts thank you. Disabling plugins on a production site on the off-chance that it might fix a problem is not an acceptable troubleshooting step. I hope you will be able to implement debug logs or similar in a future version…

    FWIW, I tried upping PHP execution limit to 300 (from 30) but that didn’t change anything.

    Thanks!

    • This reply was modified 7 years, 1 month ago by sbckmstr.
    Thread Starter sbckmstr

    (@sbckmstr)

    I figured it out.

    I have my portfolio page set to filter using AJAX and it would appear that when calling WP_Query from functions.php ‘post_status’ => ‘publish’ is not implicit.

    Added this argument and now all is fine!

    Thread Starter sbckmstr

    (@sbckmstr)

    OK fixed.

    I had already enabled language management for the custom post types, but I had not tagged all the posts with a language.

    Added the default language to all the posts and now it’s all working.

    Thanks for the quick answer and the nudge in the right direction!

    Simon

    Hi there,

    Is there any news on the modified query vars front?

    Polylang currently prevents my custom post types from showing up on my ‘Latest’ page using the following custom query:

    $args=array(
        'post_type' => array( 'magazine', 'presse', 'post' ),
        'post_status' => 'publish',
        'posts_per_page' => 8,
        'orderby' => 'post_date',
        'order' => 'DESC'
    );
    
    $query = new WP_Query($args);

    Disabling Polylang gets the posts to appear correctly. Is there any way to get this to work?

    Thanks in advance…

    Simon

Viewing 4 replies - 1 through 4 (of 4 total)