Hi,
This is almost exactly what I was after, however it’s wrapping the form in pre and code tags. How do I render the HTML without these?
Many thanks!
Hi John,
Many thanks for this, the post is updating as expected now!
Hi John,
Unfortunately I have since discovered that although the post status is changed correctly, none of the changes made to the form itself are saved?
Any idea why this would be?
Kind regards,
Ashley
I’ve tried bedrooms, rooms, min-rooms and minimum-rooms. All lead to a 404 error whilst that query is in the script. If I change the script to be looking for rooms, but enter ‘min-rooms’ into the URL, I no longer get the 404 error, so there doesn’t appear to be anything other than the script itself causing the issue.
That worked perfectly!
Thanks for all your help.
Hi John,
Thanks for your response, but the linked code appears to be only for New Posts again?
How would I adjust this for existing posts?
Many Thanks,
Ashley
I’d also love to see this functionality
I did indeed, it’s no longer needed so I’ll remove it and rebuild the repeater field and hope that solves the issue.
Many thanks,
Ashley
Here is the var_dump for the home page (Where the image is displayed correctly):
array(9) { ["ID"]=> int(6) ["alt"]=> string(0) "" ["title"]=> string(7) "LGBT-BG" ["caption"]=> string(0) "" ["description"]=> string(0) "" ["url"]=> string(68) "http://www.lgbttravelclub.com/wp-content/uploads/2014/04/LGBT-BG.jpg" ["width"]=> int(1600) ["height"]=> int(1031) ["sizes"]=> array(9) { ["thumbnail"]=> string(76) "http://www.lgbttravelclub.com/wp-content/uploads/2014/04/LGBT-BG-400x400.jpg" ["thumbnail-width"]=> int(400) ["thumbnail-height"]=> int(400) ["medium"]=> string(76) "http://www.lgbttravelclub.com/wp-content/uploads/2014/04/LGBT-BG-800x515.jpg" ["medium-width"]=> int(800) ["medium-height"]=> int(515) ["large"]=> string(77) "http://www.lgbttravelclub.com/wp-content/uploads/2014/04/LGBT-BG-1200x773.jpg" ["large-width"]=> int(1200) ["large-height"]=> int(773) } }
And taxonomy archive where it is not (Despite using same dynamic-css.php file included in the header)
string(1) "6"
Hi Eduard,
The Image was stored as a URL, but when the issue started occurring I switched it to object and started using [‘url’] to obtain the URL, but for some reason on the Taxonomy archives this is ignored, despite using the exact same PHP template!
Ashley
Just to add some further info…
The radio button field shows on the front end in the comment form on a custom post type called ‘hotels’, however I am unable to display the value in the front end in my comments template.
<?php the_field('rating'); ?>
Also worth mentioning that in Firefox the Dropdown for taxonomies collapses again if you move the cursor down to select an option…You have to use the keyboard to make a selection. This only seems to be an issue with taxonomies inside a repeater.
Now that the season has started I’ve noticed that, as you predicted, the oldest ‘Latest Results’ are being displayed.
http://hoverugby.co.uk/home-u13/
Could you provide any further advise on reversing the order based on the date sub field?
Many thanks!
This was perfect, thanks a lot!
Thanks for you quick reply,
This worked perfectly!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.