For example when trying to set the url of an Ajax request in jQuery, or setting the path to an icon image file on a Google Map.
So I was trying to count the number of repeater rows for a ACF repeater field in my WordPress theme, something which I figured would be a simple use of the count() function on the returned field.
In turns out though, that the following code doesn’t work with a repeater field if it is part of a flexible content block. Continue reading “Developer // ACF: Counting Repeater Rows Inside Flexible Content”
Working on a new project and the client wanted to show a different number of posts displayed on the first page of posts, than on the rest. In order to enable promoted cards to be given more prominence on the first page. Continue reading “Developer // WordPress Query For Showing Different Number of Posts on Different Pages”
Had an error in from a website where the admin couldn’t gain access to edit registrations in WordPress backend. Receiving the following “you are not allowed access” error:
On closer inspection to the code it appeared in trying to hide the ‘Add New’ option for the post type from the admin menu, the developer had inadvertently removed access to the registration form page. Continue reading “Developer // Removing Sub Page Menu Item In WordPress Whilst Still Allowing Page Access”