Thanks. Yes, I’ve heard this request before.
It’s not very simple to implement though. There’s a lot of logic that happens on that page, so it’s a lot to incorporate into a shortcode. And exposes us to more theme conflicts, which is not a thrilling prospect. But most of all, the plugin needs to know the address of the page that the user puts the list on, for the detail page back buttons. I’m not sure how to know that, and moreover, there’s nothing to stop the user then from having multiple pages.
That was one request actually, that you be able to make individual landing pages for reach region with a shortcode. There’s a definite case to be made for that from an SEO perspective.
It just seems like a lot more than I have capacity for right now, but I’ll keep thinking about it.
This is open source, so anyone who can do a good job is free to jump in 🙂
make a taxonomy page preserving your theme titled taxonomy-tsml_region.php, activate a Tag Cloud to show Meeting Places by City, selecting the Regions taxonomy in the Tag Cloud. Fuse the following code into your theme in the taxonomy-tsml_region.php in your theme folder:
<table class=”tsml_region table table-striped”><thead><tr><th class=”location”>Meeting Place</th></thead><tbody>
<?php
$tax = $wp_query->get_queried_object(); echo “<h1>Region: “. $tax->name.”</h1>”;
?>
<?php // do_action( ‘__before_loop’ );##hooks the header of the list of post : archive, search…
?>
<?php if ( $the_query->have_posts() ) : while ( $the_query->have_posts() ) : $the_query->the_post();
$args = array(
‘post_type’ => ‘tsml_meeting’,
‘post_status’ => ‘published’,
‘numberposts’ => -1,
);
$number = count( get_posts( $args ) );
//$number = count(get_posts(‘post_type=tsml_meeting&post_status=publish&numberposts=-1&orderby=name&order=asc’));
?>
<tr><td>“><?php the_title(); ?> <?php // echo $number; ?></td></tr>
<?php endwhile; ?>
<?php endif; ##end if have posts ?>
<?php // do_action( ‘__after_loop’ );##hook of the comments and the posts navigation with priorities 10 and 20 ?>
</tbody></table>
-
This reply was modified 8 years, 6 months ago by
lovethecode. Reason: clarification
although, the point of an override is to create a page that can be preserved though updates.
-
This reply was modified 8 years, 6 months ago by
lovethecode.