Querying & displaying custom post type into an existent page

I am creating a WordPress site, with the Avada theme, for which I need to use Custom Post Type.

For that, I installed the extensions CPT UI & ACF Pro which allowed me to create my Custom Post Type (call the “Movie” for the example) with its fields which go well (ex: “releaseDate”, “minimumAgeFor”).

My wish is to be able to integrate in an existing page (done with Fusion Builder provided by the Avada Theme), a section displaying the list of these movies with the possibility to make the layout that goes well (flexbox …).

My question is to know the cleanest way to integrate within this existing page the piece of PHP code that will allow me to search for movies and display them as I want?

I read that it was possible to define your own page to list the CPT but my wish is to display them in an existing page.

Read more here:: Querying & displaying custom post type into an existent page

Leave a Reply

Your email address will not be published. Required fields are marked *