Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter pconsti

    (@pconsti)

    I traced it back to a $postI coded in the sidebar…

    I don’t know how that should do anything but it works by rebuilding the query afterwards.

    Thanks! Great plugin by the way!

    Thread Starter pconsti

    (@pconsti)

    I have traced the $wp_query a little and there seems to be some real weird problem…

    I used the SQL-Request in my database and I got that ID correctly. Next I tried print_r() with that ID and everything was perfectly fine.

    However, in the loop the $wp_query and the $post display the wrong post_type. And I don’t find any more pre_get_post‘s.

    EDIT: I have narrowed it down to the header. Before get_header() it’s correct, but after, wrong post_type.

    • This reply was modified 8 years, 9 months ago by pconsti.
    Thread Starter pconsti

    (@pconsti)

    Thanks, I’ll be checking that once I got time.

    Great help!

    Thread Starter pconsti

    (@pconsti)

    Seems like it. I just checked the database, the post is categorized as “post” (column post_type). However the query returns my custom type.

    I cannot seem to find the post types in the database, where are they located?

    • This reply was modified 8 years, 9 months ago by pconsti.
    • This reply was modified 8 years, 9 months ago by pconsti.
    Thread Starter pconsti

    (@pconsti)

    I just normally created a post type and put some taxonomies in there.

    I am not sure, but I don’t think it’s been like this from the beginning.

    Very strange indeed…

     
     

    Could it be because I once tried copying all posts into a new taxonomy but then decided to delete this taxonomy and use the normal posts again? (There is this option to copy all posts into the new taxonomy, I clicked that..)

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