Two custom post type relations
Two custom post type relations
Two custom post type relations
You should not be using the GUID as a link. If you want to get the URL for a WordPress post object you should use get_the_permalink(): href=”‘ . esc_url( get_the_permalink( $package_link ) ) . ‘” Note that I also escaped the URL.
How can I update an ACF field in a repeater on post save?
Try adding “editorScript”: [ “jquery”, “slick”, “app” ], to your block.json file. https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#editor-script Change out the array to call the scripts needed to load in your editor.
Update post meta with wp cron
I’m not clear on whether you’re looking for one big query that returns all the ‘track_trip’ and ‘training’ posts, sorted by the two different custom meta fields, or two separate queries. But either way, you’ll need to use a custom meta_query. You will probably also need to orderby meta_value_datetime. Note in the “‘orderby’ with multiple … Read more
Create WP multisites as a custom post type
This question will probably be marked off-topic because you’re asking about a plugin, Advanced Custom Fields, but here’s the answer anyway – you need to add the ‘post id’ to your call of the_field(), so that it’s looking up the custom fields set in each of your custom post type’s posts. See https://www.advancedcustomfields.com/resources/how-to-get-values-from-another-post/
Making ACF fields appear in search results
I would recommend becoming intimately familiar with the WP_Query parameters: https://developer.wordpress.org/reference/classes/wp_query/ In your particular case; dealing with taxonomies: https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters Here is the proper code to pull from a taxonomy: $args = array( ‘post_type’ => ‘post’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘units’, ‘field’ => ‘slug’, ‘terms’ => $term->slug ), ), ); $query = new WP_Query( … Read more