Tell us what you are trying to do?
I'd like to display Images promotions (CPT) below Menu on a specific page (Accueil-1)
I created a CPT with 3 fields (image01) : image (image), url (URL field), active (checkbox)
I can see my CPT on gutenberg editor backend (image02) but not on frontend (image03)
I'm sorry, I don't really understand what the issue is.
I see that you have a CPT "Images promotions" and that has 3 custom fields, including an image.
I can see from your screenshots that you have a post of this type published, "Promotion Accueil".
You want to display this post on the front-end, inserted on the page you provided a link for (accueil-1).
I'm not sure where you want to display it, and you specifically want to display this post, rather than multiple posts of this type, for example?
To display the title of the post you would insert a Single Field block, and instead of using the current post as the source (which would be the page where the block is being inserted) you choose Other Post as the source, and then specify which post.
In the screenshot I am outputting the title of the Hello World! post on some other page, for example.
You can do the same with other fields, such as the image field, when inserting using an Image block.
I created a cpt called Images Promotions with 3 dynamic fields (an image, link, checkbox) and i want to display the image on one specific page named ACCUEIL-1 (i create a relationship between cpt and accueil1).
Scrreenshot 02 is the gutenberg editor of ACCUEIL-1 page. You can see Dynamic image on the backend (pink image with the lollipop) from the CPT "Promotion Accueil" (screenshot 3) .
Unfortunately, this image (with lollipop) doesn't appear on the the frontend like it should do : hidden link
I think we might need access to your site to understand what is going on, if "Image en vedette" is "featured image" then I don't understand the settings being offered in that screenshot.
Let me mark your next reply as private so that we can get log-in credentials from you—you may want to create a temporary admin user for us to use that you can later delete. And be sure to have a current backup of your site.
Thank you for the credentials. From what i'm seeing, your template isn't returning any of the Parent information on the frontend.
I would like to rule out the possibility of a plugin conflict, as such I would like for you to perform the basic debugging steps by disabling all the non-toolset plugins and checking the page again to see if the issue still remains. If it does then I would like to grab a copy of the site for further testing here locally.
Let me know the results of this test.
Thanks,
Shane
The topic ‘[Closed] Issues with Gutenberg : Dynamic blocks don't show on frontend (image/conditional’ is closed to new replies.