Support » Plugin: The Events Calendar » Events not showing up in blog loop

  • I use the WordPress theme Parabola and also use The Events Calendar. I’ve only just started using WordPress to run a website myself so excuse me if the solution is pretty simple, but even though I’ve checked the box where published events also show up in my blog posts loop they just don’t appear. I tried adding the order by post date piece of code to try and make it work (in the functions.php, as is told in the tutorial), but this didn’t change it. I don’t really know where to look to improve this, because compared to the editing of PHP code my knowledge is very limited.

    My website can be found here.

    Hopefully you can help me with this. I’m available to provide more information if needed.

    Thanks in advance.

    https://wordpress.org/plugins/the-events-calendar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey Jason,
    I came looking for the same thing. Since youre new to wordpress, I’d look into wp_query. Which goes like this:

    <?php
       $args = array(
         'post_type' => 'post'
       );
       $category_posts = new WP_Query($args);
    	if($category_posts->have_posts()) :
    		while($category_posts->have_posts()) :
    			 $category_posts->the_post();
    				?>
    				** DO YOUR STUFF HERE **
    		<?php
                    }
    		?>
    		<?php
    			endwhile;
    			 else:
    		?>
    
    		 Oops, there are no posts.
    
    		<?php
    			endif;
    		?>

    Thats a VERY basic example of how it works. But with that said, here is a post I just found solving our issue.

    The theme seems to be using a custom query to generate the posts instead of using the global loop!

    You’ll need to modify the query to include the tribe_events post type. The very basic way to include events would be something like:
    $zerif_latest_loop = new WP_Query( array( 'post_type' => array('post',' tribe_events'), 'posts_per_page' => $zerif_total_posts, 'order' => 'DESC','ignore_sticky_posts' => true ) );

    via: https://wordpress.org/support/profile/nicosantos

    Plugin Contributor GeoffBel

    (@geoffbel)

    Thank you for your contribution @dtek516

    Have a great day!

    Geoff B.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Events not showing up in blog loop’ is closed to new replies.