tylerjay
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Posts not displayingI appreciate your help! It led me to find the culprit!
Under Settings->Reading I had to designate “posts page” for my specified blog page because my front page is static.Yaaaaaay!
Forum: Themes and Templates
In reply to: Posts not displayingWeird, posts arent showing under default theme with all plugins deactivated. Tried
<?php wp_reset_query(); ?>
before the loop with no luck. ??Any other ideas?
Forum: Themes and Templates
In reply to: Posts not displayingUnfortunately that doesnt fix it.
Sidebar.php is bare as a baby’s bottom, unaltered from starkers.
Forum: Fixing WordPress
In reply to: PHP for calling blog post in certain category?Brilliant. Worked great. I even got this to work..
<?php $args=array( 'category__not_in' => array(16), 'showposts' => 1, 'caller_get_posts'=>1 ); $lastposts = get_posts($args); foreach($lastposts as $post) : setup_postdata($post); ?>
Forum: Fixing WordPress
In reply to: PHP for calling blog post in certain category?Cool, thanks for the plugin! The ID i need to specify is 16…all of the other categories are lumped into 1
Forum: Fixing WordPress
In reply to: PHP for calling blog post in certain category?still cant figure it out :/
Forum: Fixing WordPress
In reply to: PHP for calling blog post in certain category?Ok I found the code I was looking for
query_posts('category_name=Events');
I’m just not sure where to input within<?php $lastposts = get_posts('numberposts=1'); foreach($lastposts as $post) : setup_postdata($post); ?> <h2><a href="<?php the_permalink(); ?>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h2> <?php the_excerpt(); ?> <?php endforeach; ?>
Forum: Fixing WordPress
In reply to: PHP for calling blog post in certain category?Thanks for that, however i couldn’t get it to work even with modifying the array. I actually couldnt get a post to display with that at all.
I did get one display by<?php //get 3 posts from category 5 or 7, display title $args=array( 'showposts' => 1, 'category__in' => array(1,2), 'caller_get_posts'=>1 ); $lastposts = get_posts('numberposts=1'); foreach($lastposts as $post) : setup_postdata($post); ?> <h2><a>" id="post-<?php the_ID(); ?>"><?php the_title(); ?></a></h2> <?php the_excerpt(); ?> <?php endforeach; ?>
However im pretty sure category code isnt doing anything. Is there a way i can literally define which category? Like ‘Events’ or ‘News’
Forum: Fixing WordPress
In reply to: PHP for calling blog post in certain category?Still cant seem to find the right information, any ideas?
Forum: Themes and Templates
In reply to: How to set homepage to read home.php again?Ok I figured it out. I needed to add.
<?php /*Template Name: Homepage */ ?>
to the respective page and then go into dashboard > pages > “attributes” and find the “Homepage” template.Forum: Themes and Templates
In reply to: How to set homepage to read home.php again?Hmm, still doesnt seem to be working. I’m pretty sure only home.php is automatically recognized by wordpress.
Do you know how to add php files to be loaded per page? Like have a blog.php and about.php for /blog and /about?
Forum: Themes and Templates
In reply to: Noob Q : Why wont wordpress php files display images?That did it. Thank you sir!
Forum: Themes and Templates
In reply to: how do i change a themes?Go to “Site Admin” then “Appearance” tab on the left then Themes. Click a theme then click activate.