-
Right, now the ACF fields are shown in the listing editor:
https://app.screencast.com/4AWDPzahpK2ew1. You need to fill these custom fields in the listing editor.
2. Go to appearance > elements, edit the element called
Blog Archive Template
, and change its location tolisting archive
instead ofblog
.3. Dynamically pull the post meta in the
Blog Archive Template
element , here’s an example of how to pull theaddress
: https://app.screencast.com/31qOHKKsljHyPNow you should be able to see the listings at
https://your-domain.com/listing/
. -
I fixed the items as you recommended but
it doesn’t show up under “listings” in the menu
I added the featured image and i dont see it anywherewhat am I doing incorrectly
-
Alvind
It looks like steps 2 and 3, as outlined by Ying above, haven’t been completed yet.
For step #2, configure the correct Location under the Display Rules section: https://cln.sh/jQXtzfFh
For step #3, ensure you’ve entered the correct field name that corresponds with the ACF field you’ve set up.
-
I am 97% give or take 50%, sure I did everything correctly
“For step #3, ensure you’ve entered the correct field name that corresponds with the ACF field you’ve set up.”
where would I make sure that the correct field name corresponds with the ACF field?
-
Hi there,
go to the ACF Admin panel and edit the Field you need. Look in the
Field Name
field. -
I have it verified David, Thank you
Now how do a build a template so that when I fill out the “New Listing ”
the listing details come up and I can edit itCurrently when I click new listing
I get a screen with a blank header
below that type/to choose blockdown at the bottom the fields I built in ACF are there
but when I fill them out nothing happens -
it doesn’t show up under “listings” in the menu
It won’t. WP menu does not add menu items automatically, you need to manually add menu items at appearance > menus.
Now how do a build a template so that when I fill out the “New Listing ”
the listing details come up and I can edit itNo, you won’t have a template in the post editor. The content template only shows up in the front end.
In the backend, you need to fill up the custom fields, and add content, featured image.
but when I fill them out nothing happens
check the listing archive, the content template has a headline pulling the address, if you fill the address custom field for the listing, you should be able to see it like this one:https://app.screencast.com/c4DAJT5vGPBZm
You can add more headline blocks to pull more custom fields data.
If you want the custom fields to show on the single listing, you need to create a new block element – content template, and create the layout you want for the single listing, use headline blocks to dynamically pull the custom field data.
the new block element – content template should be assigned to
listing
as the location. -
I am still unclear
so if I want to add a listing, based on an address, I have to create a brand new element
and all all the fields there? -
Alvind
No, you just need to create one element that serves as a template for the listing archive.
Adding a listing is just like creating a new post. However, you need to fill in the corresponding custom fields so that it can be populated into the listing archive.
-
I have created the custom fields
At the bottom of the Add New Listing
I have filled out all the fields
added a featured image
and after I hit publish I dont where that page goesWhen I go into listings
I see the headline with a image cover
but none of the other fields like bedroom bathrooms etcI have included the link below
-
Let’s start over again!
1. You need to 2 block element – content template, one is for the listings arcvhie, and one for the single listing.
2. In the 2 block element – content template, you need to create the layout you want, and using GB headline block and GB image block to pull the values from the ACF custom fields.
Let me know when the 2 steps are done, we can take another look at that time.
-
Hi Again Ying
I have created The Second Element Called Single Listing
as you recommended -
Good Day I have completed the “Single Listing Element”
I am not sure how to connect
“and using GB headline block and GB image block to pull the values from the ACF custom fields.” -
You need to set the location for the element, so
listing
in this case.I checked the element, both the image and the headline are static meaning the dynamic data is not enabled.
This element will make all your listings show the same image and text.
you need to set up the DYNAMIC DATA for the image and the headline block.
By the way, the image block you are using is the WP image block, it does not have dynamic options, switch it to the GB image block with blue icon.
-
I have changed the top image to feature image with dynamic image
and all the image cells are for dynamic image
how to I connect them to the home page? -
I’m not sure what you mean, I’m still seeing a static WP image and a static headline in the single listing element.
https://app.screencast.com/dhD2b0qOKJoHD
- You must be logged in to reply to this topic.