yes, have you tried to use wp_query/query_posts ?
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
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!
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 🙂
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/
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?
place it in your child theme root folder. this is a normal WP template file, i.e. like single.php which most themes have.
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 ?