lovethecode
Forum Replies Created
-
Forum: Plugins
In reply to: [12 Step Meeting List] Meeting List Print Functionwe at The Harbor Area Central Office, have looped in PHP with the tsml meeting variables, in nested loops over days and regions and times.
with the well done tsml variables the project was fun:
https://hacoaa.org/aa-meeting-directory-table/Forum: Plugins
In reply to: [12 Step Meeting List] Having problem with adding time of meetinghi, I’d gladly help out with importing/CSV/Excel issues.
If Josh doesnt provide a solution tomorrow, I’ll see what i can do
Forum: Plugins
In reply to: [12 Step Meeting List] Future request: shortcode for pagesalthough, the point of an override is to create a page that can be preserved though updates.
- This reply was modified 7 years, 4 months ago by lovethecode.
Forum: Plugins
In reply to: [12 Step Meeting List] Future request: shortcode for pagesmake 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 7 years, 4 months ago by lovethecode. Reason: clarification