Michael Fields
Forum Replies Created
-
Forum: Plugins
In reply to: [Taxonomy List Shortcode] [Plugin: Taxonomy List Shortcode]Unfortunately the answer is no. I think that this is a pretty interesting idea though. I actually never thought to do this, but I can totally see how this would be helpful. I’m adding this to the todo list for the next release. I can’t guarantee that it will make it in. I’ll definately see what I can do though.
This was intended to be a very simple plugin and currently it only works on posts. To extend the functionality to pages, you can change the code around line 54 from:
if( is_single() ) { return $c . $o; }To:
if( is_single() || is_page() ) { return $c . $o; }Hope this helps,
-MikeForum: Plugins
In reply to: Fatal error: Call to undefined function remove_meta_box()No problem, Glad I could help. The code was from an abandoned module for a project that I am working on. Not sure it would be of any benefit to be honest.
Forum: Plugins
In reply to: Fatal error: Call to undefined function remove_meta_box()I just looked over some code that removes taxonomy meta boxen and fortunately there is a difference from what is posted above. Try using ‘side’ as the third parameter instead of ‘core’:
remove_meta_box( 'tagsdiv-main_country','post','side' );Forum: Plugins
In reply to: Fatal error: Call to undefined function remove_meta_box()You are most likely calling the function before it is defined. In a recent project, I found that this function is sage to use during the
admin_headaction. Try something like this:add_action( 'admin_head', 'remove_my_meta_boxen' ); function remove_my_meta_boxen() { remove_meta_box('tagsdiv-main_country','post','core'); }Forum: Themes and Templates
In reply to: How to add an unusual character in a page urlI would have to say that this is not a good idea. RFC1738 states:
The characters “<” and “>” are unsafe because they are used as the delimiters around URLs in free text
Forum: Plugins
In reply to: GET enqueued scripts?Even with the global declaration? I just tried it and it printed out a whole lot of information. When I removed
global $wp_scripts;it printedNULL.Forum: Plugins
In reply to: GET enqueued scripts?Try header.php after
wp_head();I could be that I am doing something wrong in the readme.txt file. I will compare the one in TIb to akismet and see if there is something I am doing wrong. Please let me know which of my other plugins are causing this error and I can look at those as well. I have many of my plugins installed on many of my own sites and have never encountered this issue. I will try to help if possible.
Wow! I have never really heard of this happening before with any plugin. Sorry but I have not been able to reproduce this bug. Have you tried installing it on a blog with fewer plugins? If so does the same thing happen?
Thanks! Glad you like it 🙂
May I suggest an addition? It would be great if we could specify the link title for each taxonomy. I’m using custom taxonomies with custom post types and when I hover the mouse over a custom taxonomy link, it displays “3 topics” or something like that. Can it be adjusted, so it could display “3 books” for instance?
This should be relatively easy to do. Will put it into the next release for sure.
Another thing to consider would be an option to be able to set the widget to display only children of the current taxonomy (unless it’s a top levbel taxonomy). So when I have a hierarchical taxonomy, first, it would display only the top level taxonomies. Then, when I click on one of them, it would display only the child taxonomies of the current taxonomy.
This is a great suggestion. I have made wp_list_pages() behave similarly via a custom walker class. It may be pretty easy to port the code to the category walker class. I’ll look into it when I get some free time. Not sure if I would build this into the select element. I think it would be a great addition to the lists.
Forum: Fixing WordPress
In reply to: reverse get_category_parents@smeknamn great catch! Sorry for the oversight. Sometimes I forget what the second parameter passed to trim() actually does. Instead of removing the string trim() removes the individual characters as shown in the Hello World example in the docs: http://php.net/manual/en/function.trim.php
Forum: Plugins
In reply to: [Taxonomy Images] [Plugin: Taxonomy Images BETA] Active Taxonomy Linksumarglobal, Could you be more specific about active linking? Are you linking to the taxonomy archive? Which element would you like to have linked?
Forum: Themes and Templates
In reply to: Rewrite a function to show first pic as thumbNo problem!
Forum: Themes and Templates
In reply to: Rewrite a function to show first pic as thumbHmmm, What happens if you change
'orderby' => 'menu_order',to'orderby' => 'post_date',