Creating a custom Admin panel
check this out, I believe this might be what you’re looking for. it helped me a lot.
check this out, I believe this might be what you’re looking for. it helped me a lot.
What you’re looking for is a 301 redirect. I use two plugins to catch do this. One notify’s me of 404 errors ( http://wordpress.org/extend/plugins/404-notifier/ ) and the other makes writing the 301 redirects easy ( http://wordpress.org/extend/plugins/simple-301-redirects/ ). You could also write the 301 redirects in your .htaccess file and dig through the server logs to … Read more
I had a similar problem and managed to solve it. In my case I have a custom taxonomy, issue, which contains a required date picker custom field using the ACF PRO plugin—the field name is issue_date. I wanted to add the date column to my issue edit screen at wp-admin/edit-tags.php?taxonomy=issue and I wanted to allow … Read more
You can filter the orderby part of the query to get what you want (trying to pass it via the orderby parameter will not work, it will be filtered out). This simple example adds the meta_value sort order before the standard title sort order. add_filter( ‘posts_orderby’, ‘wpse15168_posts_orderby’ ); $query = new WP_Query( array( ‘meta_key’ => … Read more
Changing the URL structure of a post always consists of two parts: writing the new URL in your links, and handling the new structure. Handling the new structure Handling the new structure is easy: because the post name (slug) is enough to identify a post, we can ignore the taxonomy you are using in the … Read more
Right now there are no hooks to do that from a plugin and the function that makes the search query itself is not pluggable which means that the only way to achieve that is to hack core files. Currently there is an open Trac Ticket asking for some kind of hook.
The function you are looking for is get_term() http://codex.wordpress.org/Function_Reference/get_term and the code would look something like this: $term = get_term( 1, ‘category’ );//for example uncategorized category echo ‘count: ‘. $term->count;
There is a quick and somewhat dirty potential solution to this. I say ‘potential’ because I can’t spot the problem by looking at the code. I only have my suspicions. Instead of passing a separator like that. Try trailingslashit. } else $chain .= trailingslashit($name); return $chain; I am guessing at where the problem is based … Read more
I believe the array will work using terms, rather than term (plural) http://codex.wordpress.org/Function_Reference/WP_Query#Taxonomy_Parameters Has a lot of useful info for mutiple terms/multiple taxonomies but basically look into the tax_query item, specifically AND or OR operators. It’s all explained there pretty well
You’re almost there. Since the_title inside your custom loop is one of the Post template tags you need to assign the global $post to use the new data from the custom query. <?php global $post; // Access the global $post object. // Setup query to return each custom post within this taxonomy category $o_queried_posts = … Read more