Override “Parent” input for custom taxonomy
Override “Parent” input for custom taxonomy
Override “Parent” input for custom taxonomy
function prod_a( $value ){ global $post; $_pf = new WC_Product_Factory(); $_product = $_pf->get_product($post->ID); $available_variations = $_product->get_available_variations(); var_dump($available_variations); }
You can disable pagination per find() query in Pods by setting ‘pagination’ => false, I also suggest disabling search with ‘search’ => false. You can do this globally by setting these constants, which means you’ll have to explicitly enable search or pagination on the queries you want them enabled on by setting ‘pagination’ => true … Read more
No, you will need to create them (you can do so using plugins). Another approach is creating a different taxonomy to use as the section, or even a custom post field to filter, but in all of them you will need to edit your theme code.
You forgot to create taxonomy.php or taxonomy-video_tag.php which should be the templates to use to display your custom taxonomy term archives on. You should have a look at the taxonomy term archive hierarchy Just remember to flush your permalinks in case
The problem is this: register_taxonomy(‘author’, ‘post’, array( //tax args here… )); The first argument, which is taxonomy name, you’ve set to author. WordPress uses that value as the taxonomy query var if a value isn’t explicitly declared. When this taxonomy is queried, author is used to pass the requested term slug to the query. The … Read more
This is really a question of information architecture as there are many ways to handle this sort of situation. One way to look at this would be to identify the relationships between each main category of data. Example: Locations and Brands are associated to Models. So Models would be your main CPT, with Locations and … Read more
This action hook (found in /wp-admin/edit-tags.php) will output the button below the table (not quite where you have asked to position it, but it is an easily available action and outside the form table.) $taxonomy = ‘location’; // you will probably need to change this add_action(‘after-{$taxonomy}-table’,’custom_export_button’); function custom_export_button($taxonomy) { $export_url = admin_url(‘admin-ajax.php’).’?action=export_taxonomy’; echo “<form action='”.$export_url.”‘ … Read more
Short version Within your loop call: get_template_part( ‘loop’, get_post_type() ); You need now a loop.php as general fallback template (the default view). You can generate as many post_type specific templates as you need, e.g. loop-newpost.php and loop-book.php. But you are overthinking it a bit and adding another query on top the main query (page load?). … Read more
this worked for me ‘has_archive’=> true, replace it with ‘has_archive’=> ‘jobs’, then flushed the permalinks