CubeWP Custom fields does not showing on my single past frontend page
CubeWP Custom fields does not showing on my single past frontend page
CubeWP Custom fields does not showing on my single past frontend page
I don’t know if this is the best solution, but it seems to work. Change the call to get_tags() so that it gets the tags required, in the order required. Add a loop that generates the link for each of those tags. Then generate the tag cloud for those tags. So I end up with: … Read more
The {$type}_template_hierarchy filter can be used to add templates to the list of files to check for each request: Filters the list of template filenames that are searched for when retrieving a template to use. With this filter, you can do something like below: add to theme’s functions.php or an mu-plugin (untested): add_filter( ‘taxonomy_template_hierarchy’, static … Read more
Having many sub-urls on the same custom taxonomy term
wp_insert_term is extremely slow
Try adding include_children parameter as false to your first example (tested): $args = array( ‘post_type’ => ‘workshops’, ‘posts_per_page’ => -1, ‘fields’ => ‘ids’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘workshop_categories’, ‘field’ => ‘slug’, ‘terms’ => array( ‘crafts’, ‘jewellery’ ), ‘operator’ => ‘AND’, ‘include_children’ => false, ) ) ); $posts = get_posts( $args ); Unfortunately I … Read more
Yes, you can output custom fields on the front end. You’ll need to start by creating a child theme. You can then copy whichever file applies – the one you’re showing looks like perhaps an archive.php, category.php, or something similar. Finally, tweak the output so that in addition to (or instead of) the title you’re … Read more
Bulk 301 redirect for Taxonomies with pagination
To reorder post tags taxonomy in a non-alphabetical custom order and save it in the Block Editor To achieve results use a combination of custom code. // Custom function to fetch tags in custom order function custom_get_tags($post_id) { $tags = get_the_tags($post_id); // Modify $tags array to reorder based on custom order // Your custom ordering … Read more
Inherit values from taxonomy custom field in the post that contain that taxonomy