Support » Plugin: Events Manager - Calendar, Bookings, Tickets, and more! » [Plugin: Events Manager] Is there a way to make your blog posts show up on the same page?

Viewing 11 replies - 1 through 11 (of 11 total)
  • yes, have you tried to use wp_query/query_posts ?

    Thread Starter Mike3853

    (@mike3853)

    yes I have, maybe I’m using the wrong code, but I tried:

    <?php query_posts(‘cat=2’); ?>

    When I try and tie my posts to the Event manager page it either just turns blank or doesn’t show up at all.

    Is there another code I could use?

    Thanks!

    Try this:

    <?php
    	$args = array(
    		'post_type' => array( 'post' ),
    		'cat' => 2,
    		'orderby' => 'date',
    		'order' => 'DESC',
    		'posts_per_page' => 3,
    	);
    
    	query_posts($args);
    
        ?>

    See also http://codex.wordpress.org/Function_Reference/query_posts

    Thread Starter Mike3853

    (@mike3853)

    thanks, I tried that code but I’m still getting the blank page once I put it in. Maybe I’m putting the code in the wrong spot? Does it matter where I put it?
    Here is my website: http://msflights.net/
    The events page is the Home page, where I would like my blog posts to show up. I took that code out of the page template so you wouldn’t see just a blank page.

    Thanks!

    Thread Starter Mike3853

    (@mike3853)

    I read an article that said to post the code before

    `<?php if (have_posts()) : ?>

    but I still get the issue where it makes the entire page blank, any help would be much appreciated 🙂

    Thread Starter Mike3853

    (@mike3853)

    does anyone have any suggestions? Iv’e tried everything

    Did you try to create single-event.php file in your theme as mentioned here – http://wp-events-plugin.com/documentation/getting-started/

    Thread Starter Mike3853

    (@mike3853)

    No I haven’t, would I place single-event.php directly in my child theme folder or does it go under other folders?

    Also which file would I use as a template for single-event.php? I couldn’t find any files that are named single-event.php under Events Manager. Also does it matter if Events Manager is set to pages or posts when creating single-event.php?

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    place it in your child theme root folder. this is a normal WP template file, i.e. like single.php which most themes have.

    Thread Starter Mike3853

    (@mike3853)

    I obviously don’t know what I’m doing so if anyone could give me clearer instructions I would love it….nothing I try seems to work……What other information do I need to put into single-event.php? I put this and it didn’t work either:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    can you try to paste it again using pastebin ?

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘[Plugin: Events Manager] Is there a way to make your blog posts show up on the same page?’ is closed to new replies.