Custom taxonomy meta fields
If you don’t want to deal with the coding part that much, you can always take a look on WCK plugin, that allows you to create custom taxonomies, and allow your users to see the information displayed as you want.
If you don’t want to deal with the coding part that much, you can always take a look on WCK plugin, that allows you to create custom taxonomies, and allow your users to see the information displayed as you want.
SOLVED I found the answer in another post that was answered by @Gustav for anyone looking a solution like you can follow the link or view the code below it works perfectly. https://wordpress.stackexchange.com/questions/123059/list-post-from-current-taxonomy-children THE WORKING CODE <?php $term_slug = get_query_var( ‘term’ ); $taxonomyName = get_query_var( ‘taxonomy’ ); $current_term = get_term_by( ‘slug’, $term_slug, $taxonomyName ); $termchildren … Read more
Rather than relying on a literal menu, you could use wp_list_pages possibly to better effect and sort out by certain criteria if you wish, then foreach page, display terms. Here is a little function I wrote to spit out terms for a taxonomy passed to it: // give taxonomy, will return link list to custom … Read more
Let’s start by looking at the Action Reference page in Codex: Actions Run During a Typical Request. When a page is loaded on the front or back end, WordPress goes through the load process- loading its own code, loading plugins, the theme, calling each action in sequence. You can see in the second and third … Read more
One solution would be to give a value of “none” to your posts without any post group, similarly as you have “uncategorized” posts in WP Categories. Alternatively… I haven’t checked it, but why don’t you try to make another WP_QUERY like this: new WP_Query( array( ‘post_type’ => ‘page’, ‘page_group’ => ” ) )
The default language selector is pretty crap TBH. I created this function using jQuery, you will have to amend to fit your template. function language_selector(){ $languages = icl_get_languages(‘skip_missing=0&orderby=code’); $current_lang = ICL_LANGUAGE_CODE; if(!empty($languages)) { ?> <div id=”language_list”> <div class=”current”> <img src=”https://wordpress.stackexchange.com/questions/95978/<?php bloginfo(“url’); ?>/wp-content/plugins/sitepress-multilingual-cms/res/flags/<?php echo ICL_LANGUAGE_CODE; ?>.png” alt=”<?php echo ICL_LANGUAGE_NAME; ?>” /> <?php echo ICL_LANGUAGE_NAME; ?> <i … Read more
For those running into issues in the future, this is what I did: I made my pre_get_posts function that queries the taxonomy as normal for testing if an taxonomy ID is not in a list: $q->set( ‘tax_query’, array(array( ‘taxonomy’ => ‘tax’, ‘field’ => ‘id’, ‘terms’ => tax_get_inactive(), ‘operator’ => ‘NOT IN’ ))); Then, I implemented … Read more
$qry->is_main_query() will be true on every main query on your site, front end and admin. You need to add another more specific condition to target only the page you’re trying to modify the query on, like is_post_type_archive(‘trucks’).
You can do it with jQuery with easyly. Count your tags and limit it! C = Re item’s number L = Your limit number if ( C==L ) add class “disable” to div $(document).ready(function(){ var L = 10; var $items = $(‘#post_tag .tagchecklist span’); if($items.length == L){ $(“#post_tag”).addClass(“disable”); // or alert(“ok”) } });
Just use the following rewrite argument in your register_taxonomy() call: register_taxonomy( ‘product_cat’, ‘product’, array( ‘rewrite’ => array( ‘with_front’ => false, ‘slug’ => ‘product/poruct-cats’, ), // Other arguments ));