• minasato1

    (@minasato1)


    Dear Jonathan,

    I use pods and created a custom post type “pilotregister”, I even created the archive page of custom post type”pilotregister” which is archive-pilotregister.php. I also created a content template for custom post type”pilotregister” which is template-parts/post/content-pilotregister.php.

    Now I have custom taxonomy”bundesland” which is attached to the custom post type”pilotregister”.
    I use your plugin BTF and it shows well and works fine until once I filter the result based on the taxonomy term, it does not show any posts.

    If I view the code, I see the posts have been filtered on the page but these filtered posts simply do not show up..

    I also figured out that the filtered page uses the content template of the custom post type content-pilotregister.php.
    How should I do to show the custom posts correctly in the taxonomy template(which is content template of the custom post type)?
    I am at the end of the research and could not figure it out anymore.
    Your help is very very appreciated.
    Thank you in advance.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter minasato1

    (@minasato1)

    I want to give more details to this question.
    If I choose the first term in the filter option baden-wuerttemberg(which has 2 posts).
    The page URL turns to https://drohnenpilotgesucht.de/pilotregister/bundesland/baden-wuerttemberg/
    But no posts show up.

    If I check the code of the page.
    <div id=”primary” class=”content-area”>
    <main id=”main” class=”site-main” role=”main”>
    <div class=”pilot”>
    <article id=”post-1042″ class=”post-1042 pilotregister type-pilotregister status-publish hentry bundesland-baden-wuerttemberg”>

    <header class=”entry-header”>
    ArrayRS-Drohnenfotos<h2 class=”entry-title”>RS-Drohnenfotos</h2> </header><!– .entry-header –>

    <div class=”entry-content”>
    </div><!– .entry-content –>

    </article><!– #post-## –>
    </div>
    <div class=”pilot”>
    <article id=”post-1046″ class=”post-1046 pilotregister type-pilotregister status-publish hentry bundesland-baden-wuerttemberg”>

    <header class=”entry-header”>
    ArrayPicturkeult<h2 class=”entry-title”>Picturkeult</h2> </header><!– .entry-header –>

    <div class=”entry-content”>
    </div><!– .entry-content –>

    Which contain the two posts https://drohnenpilotgesucht.de/pilotregister/1046/
    and https://drohnenpilotgesucht.de/pilotregister/1042/
    But it does not show up. This page uses content template of the custom post type “pilotregister” because it contains a div class=pilot, which I have added to content-pilotregister.php before.

Viewing 1 replies (of 1 total)
  • The topic ‘filter works to filter the custom posts but posts do not show up’ is closed to new replies.