Posts on my site describe future events, with the event date recorded in a custom field in Unix time. Generally, only upcoming events are relevant to visitors. As such,...
I have created a theme template for a custom taxonomy. The HTML title tag has the yoast title that I set when editing the taxonomy. I want to also...
I have a custom Submenu page with my post type in which I am querying all posts and adding custom textareas and dropdowns that will repeat with each entry....
Closed. This question is off-topic. It is not currently accepting answers. Your question should be specific to WordPress. Generic PHP/JS/SQL/HTML/CSS questions might be better asked at Stack Overflow or...
I’ve googled this a bunch, there’s a couple of answers for old versions (pre-gutenberg) of WordPress but none that I could find for Gutenberg. Essentially I have a custom...
I registered a boolean meta field called _meta_restrict in a custom post type: PHP: function register_meta_fields() { register_post_meta( 'custom_post_type', '_meta_restrict', array( 'show_in_rest' => true, 'single' => true, 'type' =>...
I have one question as for Nav Menu Items custom fields in the Appearance > Customizer screen. Since 5.4. there are 2 new hooks: wp_nav_menu_item_custom_fields – it works for...
A WordPress installation I’m working with has a couple dozen custom fields, including some that contain outdated Open Graph information (e.g., dpsp_pinterest_hidden_images, swp_advanced_pinterest_image_location). I’m trying to identify what created...
I’m trying to set up local json sync with ACF on a multisite installation. It worked with the default acf-json folder in the child theme, but I’d like to...
I have the following function set up in my functions.php file to allow my custom post type “Slideshow” to work. add_action( 'the_post', 'paginate_slide' ); function paginate_slide( $post ) {...