WordPress.org

Ready to get started?Download WordPress

Forums

  1. bytesmasher
    Member
    Posted 2 years ago #

    Two questions:

    1. I noticed an absence of "quick edit" (and thus, batch edit) functionality for this plugin. Any chance this is coming soon?
    2. I'm having a heck of a time trying to figure out a way to get my navigation menu to automatically populate with the CPT posts as subnav... does anyone know of a way to do this?

    http://wordpress.org/extend/plugins/cpt-onomies/

  2. Rachel Carden
    Member
    Plugin Author

    Posted 2 years ago #

    Hey!

    1. I have added "quick edit" functionality to the list. I can't promise it will be out in the next version (which will be out later this week) but I'll try to get it up and running soon!
    2. I'm experience-less in automatically populating subnavs with custom post types but if I find anything, I'll let you know.
  3. bytesmasher
    Member
    Posted 2 years ago #

    Awesome! Thanks for the prompt response :)

  4. Rachel Carden
    Member
    Plugin Author

    Posted 2 years ago #

    Hey! I just released 1.0.3 which includes Bulk and Quick Edit support.

    When you get a chance to test it out, I'd love to know what you think!

  5. bytesmasher
    Member
    Posted 2 years ago #

    Works great! This is quickly becoming my favourite plugin. In fact, I dare say it should be core functionality ;)

  6. Rachel Carden
    Member
    Plugin Author

    Posted 2 years ago #

    You flatter me, sir. Glad you like it. =)

  7. bytesmasher
    Member
    Posted 2 years ago #

    The project I'm working on is a fairly daunting proprietary CMS -> WordPress migration, and your plugin has saved me many hours of attempting to get Taxonomies and Custom Post Types to jive nicely. You've helped save what little sanity I have left at the moment ;)

  8. bytesmasher
    Member
    Posted 2 years ago #

    Rachel, I'm having another issue now... when I use get_terms, the "count" value is not being returned in my term objects. Is this something I'm doing wrong?

  9. Rachel Carden
    Member
    Plugin Author

    Posted 2 years ago #

    What's your code look like?

  10. bytesmasher
    Member
    Posted 2 years ago #

    <ul><?php
    	//List terms in a given taxonomy
    	$taxonomy = 'solutions';
    	$term_args=array(
    	  'hide_empty' => false,
    	  'orderby' => 'count',
    	  'order' => 'ASC'
    	);
    	$tax_terms = get_terms($taxonomy,$term_args);
    	?>
    	<ul>
    	<?php
    	foreach ($tax_terms as $tax_term) {
            var_dump ($tax_term);
    	echo '<li>' . '<a href="' . esc_attr(get_term_link($tax_term, $taxonomy)) . '" title="' . sprintf( __( "View all vendors in the %s industry" ), $tax_term->name ) . '" ' . '>' . $tax_term->name . '<span class="count">' . $tax_term->count . '</span></a>'.($tax_term->count).'</li>';
    	}
    	?>
    	</ul>

    This is just quick and dirty debug code.... but var_dump isn't showing the 'count' key ... and $tax_term->count isn't showing anything either.

  11. Rachel Carden
    Member
    Plugin Author

    Posted 2 years ago #

    It's an error on my part that will be fixed in the next version.

    For now, just add 'pad_counts' => true to the arguments and it will include the count.

  12. bytesmasher
    Member
    Posted 2 years ago #

    You mean 'show_count', right? ;)

  13. bytesmasher
    Member
    Posted 2 years ago #

    Got it working btw... show_count was the parameter I needed to set to true. It turns out without show_count, it wasn't even allowing me to sort the results by count. All's good now though :)

  14. Rachel Carden
    Member
    Plugin Author

    Posted 2 years ago #

    Ah! You are correct. I must have had 'pad_counts' on the brain from looking at the code.

    Glad it's working. I've fixed the code for the next version.

  15. bytesmasher
    Member
    Posted 2 years ago #

    Just an aside, I'm using the All-in-one Event Calendar plugin, and I get this error when I land on the "settings" page of that plugin:

    Warning: Missing argument 2 for CPT_ONOMIES_ADMIN::add_cpt_onomy_meta_boxes() in ./wp-content/plugins/cpt-onomies/admin.php on line 1886

    I do believe it's related to the way you're hooking in to the admin panel, but I'm not sure if it's possible for you to trap that particular error... of it it's something the event plugin should be responsible for. Just thought I'd bring it to your attention in case it's indicative of a deeper problem with CPTonomies.

  16. Rachel Carden
    Member
    Plugin Author

    Posted 2 years ago #

    Hey... thanks for letting me know. I could be mistaken but I believe this is a problem with the All-In-One plugin.

    They are using meta boxes on their settings page, which is fine, but they are using the 'add_meta_boxes' action hook to add their meta boxes, which is also fine, BUT this is a core WordPress hook that should pass 2 parameters: the page and the object ($post, $link, $comment, etc) being edited.

    Since they are using it on a settings page, they don't have an object to edit so they didn't pass a second parameter. If they are going to use this hook, they should include a second parameter, even if it's a blank one, so everyone else who uses the hook will not get errors.

    Like I said, I could be mistaken and perhaps it is all my fault but I'm pretty sure this is an All-In-One issue.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic