• Hello,

    I’ve been looking for hours on this specific thing but can’t find a decent guide that works for me. I’m quite new to wordpress and have little to no experience in php yet.

    What I am looking for
    I want to have eg. a page “teachers” showing eg. all the persons (custom post type) which are teachers (taxonomy option, category like) and speak English and Dutch (taxonomy option, category like). This page should be filled with the title(from personsEntry), the_content(from personsEntry), required custom fields (from personsEntry) eg. picture, name,…

    What I did…
    I created a custom post type “persons“, with taxonomies “personindications” and “languageoptions“.

    side note: For the easy use of integrating custom fields I now use the plugin (Advanced Custom Fields – https://plugins.elliotcondon.com/advanced-custom-fields/code-examples/)

    I tried to code in functions.php at first and was able to create custom type and taxonomies hardcoded. However querying those is a pain which I can’t figure out.

    Basically, I have my custom post type filled with 4 persons and the required fields, options… to test it. I created a teacher-template file (php with the code to run the query and stuff) and assigned that template to the page “teachers”.

    I have no idea how to retrieve the data into my page. Anyone can help me out on this, so I can understand and work from there? Now it seems rather complicated and I’m a bit lost going from codex: wp_query to custom post types to taxonomy to pages,…

    Any help is very much appreciated…
    Thanks in advance!

  • The topic ‘how to let a page be filled with custom type data?’ is closed to new replies.