Browsing Category

Wordpress custom-taxonomy

Partial text search custom taxonomy

I am trying to do an autocomplete field that interrogates the database finding a custom taxonomy but can’t seems to figure out how to achieve

How to make my taxonomy URL work?

I register my taxonomy ( Writer ) with this code : function writer() { $labels = array( 'name' => 'writer', 'singular_name' => 'writer', 'menu_name' =>

Display Custom Taxonomy Terns ordered by meta_value

I got stuck with ordering custom taxonomy. I’ve created a hierarchical custom taxonomy called Brand and created some meta tags including one called position. Now

Passing a variable to register_taxonomy()

I’m trying to create multiple taxonomies. As follows….. $taxonomies = $wpdb->get_results( "SELECT * FROM $table_name" ); foreach ($taxonomies as $taxonomy) { //stuff that defines the

How would one concatenate a variable inside a url?

How would one concatenate a variable inside a url? <a href="<?php echo esc_url( home_url( '/' ) ); ?>team-names";?><?php echo "/" .$term->slug; ?>" > Read more

Sorting terms individually for each post

I have a custom taxonomy named author containing multiple terms. The default output order in the front end is alphabetically. But I like the authors

adding static page under term

How do I create a structure like this on wordpress http://sample-site.ph/archives/school/arts-and-sciences/gallery shool:taxonomy arts-and-sciences:term gallery: a page i want to add as a child of every

Showing "All posts" under custom top level

This is my first time making a custom Post and I noticed that if I add my custom posts on the main menu then they

How can I automatically add a taxonomy to my navigation?

So I have a navigation of custom taxonomies that I have added through Appearance > Menus Navigation: HOME | NISSAN | HONDA | TOYOTA |

Register WooCommerce `product_cat` taxonomy to be available for posts

Is it possible to register WooCommerc’s product_cat taxonomy for use by posts? I have tried the following with no success. function custom_cross_content_type_taxonomies(){ register_taxonomy_for_object_type( 'product_cat', 'post'

Register `product_cat` taxonomy for dfault post post type

Is it possible to register WooCommerc’s product_cat taxonomy for use by posts? I have tried the following with no success. function custom_cross_content_type_taxonomies(){ register_taxonomy_for_object_type( 'product_cat', 'post'

Register `product_cat` taxonomy for default post post type

Is it possible to register WooCommerc’s product_cat taxonomy for use by posts? I have tried the following with no success. function custom_cross_content_type_taxonomies(){ register_taxonomy_for_object_type( 'product_cat', 'post'

Pretty permalinks with multiple taxonomy queries

I’m using a plugin called Query Multiple Taxonomies and I can’t seem to get pretty permalinks to work on those pages. The URL structure is:

Display Woocommerce product’s taxonomy’s description on archive page

On my Woocommerce site, its product’s categories have a description that is automatically shown on the category’s archive page, due to built in functions of

Displaying terms of a custom taxonomy

I’ve read all the posts about displaying terms of a custom taxonomy and it’s still not working. Ok, so here’s the code: <?php //creating a

get_terms() returns an empty array

I’ve read all the posts about displaying terms of a custom taxonomy and it’s still not working. Ok, so here’s the code: <?php //part of

Back to Top 44367 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising