Permalink URL connection between two custom types
Permalink URL connection between two custom types
Permalink URL connection between two custom types
Weird custom fields data lost
By this website , https://www.fitnessblender.com/videos Taken out the first portion (e.g Difficulty) – Make this as Taxonomy/Category, Then the below filter checkboxes (e.g 1,2,3)- this will be Tags, Custom post type – videos
Answear is available here with explaination (french). https://www.wpnuls.fr/import-csv-de-champs-acf-avec-really-simple-csv-importer-740.html
You have to use “orderby” => “meta_value_num” and set a “meta_query” at the same time. Then choose the “meta_key” you want to order by. Try: $query = new WP_Query( array( ‘post_type’ => ‘some_cpt’, ‘posts_per_page’ => – 1, ‘meta_query’ => array( array( ‘key’ => ‘active’, ‘value’ => ‘1’, ‘compare’ => ‘=’, ) ), ‘meta_key’ => ‘ranking’, … Read more
I was able to find some helpful articles, the combination of which helped me solve this. First, I discovered that the uploadedTo information can retrieved, returning the ID. A bunch of information on attachment data can be found here. Second, I was able to convert the ID into a link for the post by simply … Read more
You can not use is_single() conditional tag here. You can check the type of post in the function this way: add_action( ‘save_post’, ‘set_genre_on_save’, 20, 3 ); function set_genre_on_save( $post_id, $post, $update ) { if ($post->post_type != ‘hvm’) return; // … } You can also attach the function to the action hook save_post_{post_type}, which is triggered … Read more
Answer – the correct formulation is… ‘meta_query’ => array( array( ‘key’ => ‘Topic’, ‘value’ => “12057”, ‘compare’ => ‘LIKE’ ) ) In full: ` $args = array( ‘taxonomy’ => ‘event’, // ‘order’ => ‘ASC’, ‘hide_empty’ => false, ‘hierarchical’ => true, // ‘parent’ => 0, ‘meta_query’ => array( array( ‘key’ => ‘Topic’, ‘value’ => “12057”, ‘compare’ … Read more
‘orderby’ => ‘post__in’, ‘post__in’ => array(5,6,3,8), You need ACF to pass the ID’s in order but that should do it.
You want to start here and here. Essentially you’re just looping through all your posts like normal and then adding some custom fields into it. Be sure to reference the Repeater Field documentation. This should work inside a loop. Notice you’ll need your post ID. <ul> <?php if( have_rows(‘YOURREPEATERFIELDNAMEHERE’, ‘POSTIDHERE’) ): while ( have_rows(‘YOURREPEATERFIELDNAMEHERE’, ‘POSTIDHERE’) … Read more