Rachel Cherry
Forum Replies Created
-
Are you using the previous_post_link() and next_post_link() functions within The Loop?
They are template tags and must be used in The Loop.
Forum: Plugins
In reply to: [Plugin: CPT-onomies]Listing custom posts within the LoopYes, I do recognize the story =)
I’ve been using this concept of using custom post types as taxonomies for a while, but it was in a very rough form because I didn’t have time to do it right, I just needed it to work. But when the time came, I’m glad I was able to really devote some time and do it right.
I also knew that I was not the only who had this need and I’m glad I can share my work with others.
In case you haven’t noticed, version 1.0.2 is available and provides support for tax queries, although you don’t have to use the post title for the query (plus the post title != slug). You can use the post id, like so:
<?php echo "<h3>Scores</h3>"; $args = array('post_type' => 'scores', 'tax_query' => array ( array ( 'taxonomy' => 'works', 'field' => 'id', 'terms' => get_the_ID() ) )); $the_query = new WP_Query ($args); while ( $the_query->have_posts() ) : $the_query->the_post(); the_content(); endwhile; ?>
Let me know if you have any problems or questions.
Forum: Plugins
In reply to: [Plugin: CPT-onomies]Customising the back end – wish listThis is on my wish list too =)
I may bug you a little when I start working on it to get some feedback and suggestions/ideas.
Just wanted to let you know version 1.0.2 is now available AND includes support for previous_post_link(), next_post_link(), prev_post_rel_link() and next_post_rel_link().
global $cpt_onomy; $cpt_onomy->previous_post_link( $format, $link, $in_same_cpt_onomy, $excluded_term_ids, 'comics' );
global $cpt_onomy; $cpt_onomy->next_post_link( $format, $link, $in_same_cpt_onomy, $excluded_term_ids, 'comics' );
These CPT-onomy functions work exactly like the WordPress functions and take an extra parameter that allows you to designate which CPT-onomy to use for $in_same_cpt_onomy.
I’m still working on adding these functions to the CPT-onomies documentation but they should be available within the next day or 2.
I hope this is what you were looking for. Let me know if you come across any problems. Thanks!
Forum: Plugins
In reply to: [Plugin: CPT-onomies]Listing custom posts within the LoopI’m adding support for tax_query right now and, if all goes well, will be pushing out an update later today!
Thanks for all the info!
It’s not possible right now but I’ll add it for the next version.
Thanks for pointing it out!
If you do decide to create custom post types in your theme’s functions.php file, these custom post types can still be registered as CPT-onomies. They will show up in the “Other Custom Post Types” section and you can “edit” them to define the CPT-onomy settings.
Hi again =)
So basically you would like to use the previous_post_link() and next_post_link() functions with your cpt-onomy instead of the default taxonomy “category”?
Hi there =)
One of the best features of “CPT-onomies” is that it can simply be used to create custom post types if that’s all you need. You don’t HAVE to “register your custom post type as a CPT-onomy” to use the plugin.
With that said, there’s really no need to have code in your theme’s functions.php file to create custom post types as long as you’re using the “CPT-onomies” plugin.
But if you still want the code for your functions.php file, the WordPress function register post type() will do the trick.
Forum: Fixing WordPress
In reply to: Admin VERY slow since 3.1I’m having the same problem. I, too, have a multisite. None of my plugins are activated. Since I only use a few, I’m even going through and deleting them and it doesn’t seem to be having an effect so I don’t think it’s a plugin issue.
Perhaps a multisite issue?