Twentyfourten
Forum Replies Created
-
Forum: Plugins
In reply to: [Taxonomy Images] Doenst work with WP 3.6Hi,
Can anyone confirm that the plugin now works with WP3.6?
I notice there is a recent update (0.8.0) but does this update remedy the ‘Associate with..’ button issue?
I have version 0.7.3 running on WP3.6 and the ‘associate’ button doesn’t work – just looking for confirmation that the plugin update takes care of that issue.
Cheers
see: Link
Forum: Fixing WordPress
In reply to: Show different custom post types related by TaxonomyAnswering my own question.
Searched endlessly for ‘related’ plugin’s that might allow this. All ‘related’ plugins seem to presume you are searching against related terms and taxonomies within your posts ‘type’ and not for another ‘custom post type’.
Forum suggestions even made me reconsider my SETUP logic altogether, and have just one post type and ‘tag’ as ‘Resort’ or ‘Course’. But I definitely needed the two separate CPTs, as they were different by content (different custom fields) and not just name.
So, I achieved the desired GOAL by combining a couple of plugins.
1 – Display Posts Shortcode
2 – advanced custom fields/
3 – advanced custom fields – taxonomy add-on
1 – Allowed me to put shortcode in my Post admin, and display manually on every post something like this:
[display-posts taxonomy="destinations" tax_term="algarve" post_type="course"]
2 and 3 – Allowed me to create a custom field which would be pre-populated with each posts terms in a hierarchical checkbox and shown in the posts admin. This allows complete flexibility over defining the ‘Location’ that is meant by ‘Nearby’.
That is output then as this:
<?php the_field('define_nearby'); ?>
Outside of post admin and within the template/page for each CPT I simply combine the two plugins as shown below, and this then shows all the ‘Related posts’ for a different Custom Post Type in the current posts location.
[display-posts taxonomy="destinations" tax_id="<?php the_field('define_nearby'); ?>" post_type="course"]
I’m sure there are many different ways of producing this, a Custom Loop perhaps? Anyway, for me this achives exactly what I wanted.
Hope it helps someone else to spend much less time than I did looking for a solution.
Forum: Plugins
In reply to: [Taxonomy Images] [Plugin: Taxonomy Images] get child category imageelbego, looks like I’m two weeks behind you in attempting same thing, your code looks really close to what I’m doing, I’d appreciate some help:
Here’s what I’ve got working –
$term_slug = get_query_var( 'term' ); $taxonomyName = get_query_var( 'taxonomy' ); $current_term = get_term_by( 'slug', $term_slug, $taxonomyName ); // begin check if no children - to not show 'no category' message $termchildren = get_term_children( $current_term->term_id, $taxonomyName); if($termchildren && ( !is_wp_error( $termchildren ))) { // end check // whole section with $args_list and wp_list_categories($args_list) here; } $args_list = array( 'taxonomy' => 'destinations', // or use $taxonomyName for all taxonomies 'show_count' => true, 'hierarchical' => true, 'child_of' => $current_term->term_id, 'hide_empty' => '0', 'title_li' => '', 'echo' => '0', ); echo wp_list_categories($args_list);
This code is fine and dandy and displays a couple of child terms as an unordered list of links when on a Parent taxonomy archive.
I’ve adjusted where it seemed sensible to reflect elbego’s code:
$term_slug = get_query_var( 'term' ); $taxonomyName = get_query_var( 'taxonomy' ); $current_term = get_term_by( 'slug', $term_slug, $taxonomyName ); $args = array( 'taxonomy' => 'destinations', // or use $taxonomyName for all taxonomies 'show_count' => true, 'hierarchical' => true, 'parent' => $current_term->term_id, 'hide_empty' => '0', 'title_li' => '', 'echo' => '0', ); $cats = wp_list_categories ( $args ); foreach ($cats as $cat) { echo '<li><a href="' . get_category_link($cat) . '" title="'. $cat->name .'">' ; $terms = apply_filters( 'taxonomy-images-get-terms', '' ); if ( ! empty( $terms ) ) { foreach( (array) $terms as $term ) { if($term->term_id == $cat->term_id) { echo wp_get_attachment_image( $term->image_id, '' ); } } } echo $cat->name ; echo '</a></li>'; }
I’ve made the ‘child_of’ switch to ‘parent’ in the Array, and switched the code from the ‘echo wp_list_categories($args_list);’ point.
Unfortunately, I get a ‘Warning: Invalid argument supplied for foreach()‘ message.
Seems to be as soon as it hits here: ‘foreach ($cats as $cat)’ there’s a problem.
Could anyone lend a very frustrated fella a hand in getting a few images to ‘show’, it really shouldn’t be so tough to do ; )
Forum: Plugins
In reply to: [Posts 2 Posts] Is this the plugin I need?Thanks scribu,
An early obstacle to your SETUP improvement, is that ‘Drummer’ and ‘Guitarist’ utilize different Custom Fields, which make them naturally feel as though they definitely should be two different Types of Post, it’s not the ‘classification’ which only makes them different, it’s their content.
I will definitely consider your suggestion, and think through if it could be applied.
If however (as I’m thinking at this stage) there needs to be two CPT and SETUP was unchanged, any ideas of still achieving the GOAL?
And of course if P2P was a possible enabler.Some more digging turns up that the WordPress native gallery by default links to the ‘full size’ version of an image. So, plugin is not doing anything different to standard WP behavior. Nevertheless, a way to link to a media size setting would be great if anyone knows how?