Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 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.

    Thread Starter minasato1

    (@minasato1)

    Dear Bcworkz,

    thanks for the quick reply. I am not English native speaker and do not know wordpress well(still learning..). So it might have caused some cofusion what I want to archive with the code…
    Thank you for the advices. I will look back to this site daily perhaps to see if there is any update here.
    Thanks for taking time answering my post:)

    Thread Starter minasato1

    (@minasato1)

    Dear Bcworkz,

    thanks for your quick reply. Your help is very appreciated.
    Thanks for the explaination. I unfortunately am just newbie to the wordpress coding…. I tried to understand the your words. But it is hard for me.
    Could you write me a code which could acompolish my purpose?
    The code above does work if you after pubishing UPDATE the post afterwards.
    but that is not I want, I want the title being set automatically after pubishing the costum post type, and no Need to update the post again.

    The customer post type is ‘auftragerstellen’
    the meta field of the auftragerstellen is respectively ‘titel’ and ‘ort’.
    The title should be like this ‘titel’ ‘in’ ‘ort’.
    This Problem could not be solved by me, due to lack of php and wordpress knowledge.
    I really appreciate if you could help me solve this Problem.
    Thank you very much in advance.

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