Michael Fields
Forum Replies Created
-
Forum: Plugins
In reply to: [Taxonomy Images] [Plugin: Taxonomy Images BETA] Include excludeearthjibber, you’re welcome. I think I have some time this week to get this plugin polished up and a new version released. Would you be available to help test the new version? If so, please get in touch: michael [at] mfields {dot} org.
IMO you made the wrong choice. My plugin has been tested on many site using a few of the other plugins that create taxonomies. This is honestly the first that I have heard about “More Taxonomies” and I have installed it and tested it out and it seems like the plugin does not automatically set the query_var property for the taxonomy objects that it creates. IMO this is most likely why you are experiencing these problems.
Do what you wish, but if you choose to edit my plugin, please change the name. I will probably release an updated version when WordPress 3.1 rolls out and this will overwrite your changes if you accidentally upgrade it.
Which plugin to you modify? Be sure to change the name to avoid conflicts with upgrades 🙂
How do you download it? I can’t find the link 🙁
Would you be open to using custom code?
Please paste the code which you used to register your fileformat taxonomy.
Please don’t change the link code. It works fine for me with categories at least. Follow this link:
it get’s rewritten to:
http://vectshare.com/category/fashion/
What exactly is the problem?
WordPress 3.0 and every previous version for that matter queries for categories by ID and other taxonomies by slug.
What is your permalink structure?
I don’t know how this would be done actually. I would most definitely have to build a custom importer exporter. In my experience both post and term id’s can be changed during an import/export using the plugin.
The Taxonomy Images plugin stores only the
term_taxonomy_idandattachment_idfor each association. I designed it this way to maximize the number of associations that can be stored for an installation. If these numbers change during import/export then the values in the plugin’s option would be useless.When moving data to a new installation. I always use mysql import/export as you get all of the data and not just what passes the importer’s filters.
Open to hearing suggestions here. And if I am wrong about anything please let me know. I have only minimal experience using the importer.
Interesting. Did they want to put an icon right next to each navigation list, or next to each list item?
Actually, I would love to see the thread if it is public. It would be nice to understand how this works 🙂
Will definitely be adding something to the taxonomy widget to support this plugin. I think I’ll just append a couple templates to the list if Taxonomy Images is installed. I don’t really want them to overlap – just play nicely together.
Forum: Developing with WordPress
In reply to: Comments Template and AJAXThis one’s a bit better:
/** * Show a single post via admin-ajax.php * * Use a url like this to call this function: * /wp-admin/admin-ajax.php?action=mfields_show_post&p=514 * * @since 2010-12-04 */ function mfields_ajax_show_post() { $id = ( isset( $_GET['p'] ) ) ? (int) $_GET['p'] : false; query_posts( array( 'p' => $id ) ); if ( have_posts() ) { while( have_posts() ) { the_post(); the_title(); the_content(); comments_template( '', true ); } } else { print '<p>No posts</p>'; } exit; } add_action( 'wp_ajax_mfields_show_post', 'mfields_ajax_show_post' ); add_action( 'wp_ajax_nopriv_mfields_show_post', 'mfields_ajax_show_post' );Forum: Developing with WordPress
In reply to: Comments Template and AJAXThis is probably a good place to start:
function testtesttest() { $post_id = ( isset( $_GET['post_id'] ) ) ? (int) $_GET['post_id'] : null; query_posts( array( 'p' => $post_id ) ); if ( have_posts() ) { while( have_posts() ) { the_post(); the_title(); the_content(); comments_template( '', true ); } } } add_action( 'wp_ajax_testtesttest', 'testtesttest' );No worries 🙂 Feel free to send me info on what you are doing with the plugin. The reason for the current lack of front-end support is mainly due to me building what I needed into the plugin. It’s hard for me to know what others may want to do with it. Here’s what I have on the table for the next release, if there’s anything that you would suggest, I’ll would love to hear about it:
- New shortcode which produces an unordered list of terms in a given taxonomy. Use can specify size of image, taxonomy and context. Context can be either ‘post’ (get all terms w/ images that are associated with the current $post object) or ‘global’ get all terms of a given taxonomy that have an associated image and at least one associated post.
I’m thinking about adding a filter on the li which would enable users to directly control the structure of these elements.
I can also create a custom action for this function intended for use in single template files which would allow the displaying of images outside
the_content. - Template tag for displaying a single image in archive view if it exists. This would be an action that would degrade seamlessly if the plugin was uninstalled.
- I’m also thinking about extending my Taxonomy Widget plugin to recognize this plugin which would enable the display of images inside a widgetized area.
Am I missing anything that you believe to be beneficial? Do you have any other suggestions?
I’m currently working on a complete rewrite of the plugin and I plan to have better front-end support. For the time being, the shortcode is the only supported method of displaying the images within a post or a page.
Forum: Plugins
In reply to: [Taxonomy Terms List] [Plugin: Taxonomy Terms List] display it on pagesCan you add a widget area to your homepage?
- New shortcode which produces an unordered list of terms in a given taxonomy. Use can specify size of image, taxonomy and context. Context can be either ‘post’ (get all terms w/ images that are associated with the current $post object) or ‘global’ get all terms of a given taxonomy that have an associated image and at least one associated post.