-
Good day
I am trying to create a page to display my 36 listings
currently using the premade template it appears that the listings are named one after the other
instead of that page “listing” going to a page that displays all the listingsHow can I get that done?
I have included the site -
Hi there,
Do you want to have a page that shows all your listings?
The Realtor template does not have this kind of function, so you will need to do some work to make that happen.
Try following the instructions below:
1. in stall the ACF plugin: https://wordpress.org/plugins/advanced-custom-fields/
2. create a custom taxonomy for pages, eg.
listings
.3. create a term, eg.
term-1
, assign it to the listing pages.4. create a new page, add a query loop block, set post type to page, add taxonomy parameter, choose
listings
>term-1
, it should show all the pages that haveterm-1
term.5. select the query loop block, you can change the posts per page value, and add pagination by clicking the + icon.
-
Good Day I already have the custom taxonomy page titled listings
i am struggling to see where I would create the term eg term-1
-
The login doesn’t work, can you check?
https://app.screencast.com/SCAcT0s6JSlFx -
I am sorry I didnt send the correct one
the correct one as tested is in here now
-
I see that you’ve created a custom post type called listings, in this case, you do not need to follow the my instructions anymore. My instruction is in the case that you are using the regular page as listing.
Now, you can create a new page, and add a query loop block, set the post type to listing, then it’s good.
I created a drat page called All listings with a query loop block, you can have a look.
-
thank you Ying
create a new page, and add a query loop block, I understand
set the post type to listing
I don’t know where to set the post typeAnd once I set the post type will that pull the listing onto the page?
What happens to that page /listing#
do I need to add the new “Listing Page” to the main menu I assume.and finally will that affect the listings on the home page?
-
And once I set the post type will that pull the listing onto the page?
Yes, have you checked the page I created? Please check the settings I did for the query loop block.
do I need to add the new “Listing Page” to the main menu I assume.
Sure. you can add the page to your menu at appearance > menus.
and finally will that affect the listings on the home page?
The homepage listings are static content, you can replace that with a query loop block.
-
Thank you Ying.
-
No Problem 🙂
- You must be logged in to reply to this topic.