Minimising number of queries on a page when using Advanced Custom Fields

I’m currently working on a site where there is extensive use of the popular Advanced Custom Fields plugin. However, as a result the page loading time can be quite slow, especially when using the Gallery plugin. Does anyone have suggestions regarding what the best practice is with managing a large number of custom fields? In … Read more

Show custom field from custom taxanomy term on custom post type

I need to show a list of custom taxanomy terms assigned to the current post type with a name and a custom field. (Created with Advanced Custom Fields) Currently I use the following code, to show a list of the custom taxanomy terms assigned to the current post: echo ‘<ul class=”taxanomy-name”>’; echo get_the_term_list( $post->ID, ‘taxanomy-name’, … Read more

Empty Super Cache programmatically (with ACF action) [closed]

Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/HTML/CSS questions might be better asked at Stack Overflow or another appropriate site of the Stack Exchange network. Third party plugins and themes are off topic. Closed 7 years ago. Improve this question I regularly use … Read more

How to Display ACF Relationship Custom Field as Link to Specific Custom Post?

OK. I am reading this ACF tutorials, but I am not getting into this. I have 2 post types: Lists and Contacts. Every List must be related to some Contact, and I use Relationship custom field type (list_supplier), which is limited to only one choice (or Contact). All I have to do is to display … Read more

Send Multiple Custom Field Values Through the URL

Basically, I’m trying to follow this tutorial to add an action to the pre_get_posts and create a custom meta_query so I can alter the query within the URL and display babies,children and home books like so: http://website.com/books/?type=babies,children,home I’m using the Advanced Custom Fields plugin for my custom fields and my custom field is called ‘type’ … Read more

wp_update_post based function works on existing posts, but not new posts

I have a function that will update the title of the post based on an ‘advanced custom field’. It works on existing posts, but not when I create a new post. When I try and save the post and check the post listings, it isn’t there. Any help would be greatly appreciated. function my_post_title_updater( $post_id … Read more

WordPress custom post type archive with description

I have a common design pattern I’m not entirely sure how to best execute in WordPress. The layout is a listing of post teasers (title, trimmed body, image) on an overview page. Let’s say example.com is a boating safety company, and at example.com/classes there’s a listing of their posts of the class type using archive.php … Read more