tilleyt88
Forum Replies Created
-
Forum: Hacks
In reply to: Search only using drop down menusDid you manage to find anything on this because I need something similar.
Forum: Themes and Templates
In reply to: How do I display a list of posts from the current month?Forum: Themes and Templates
In reply to: How do I display a list of posts from the current month?I just want to show a list of post that have been posted in the current month.
Forum: Themes and Templates
In reply to: How do I display a list of posts from the current month?well went on to the link you posted and put in the code
// Create a new filtering function that will add our where clause to the query function filter_where( $where = '' ) { // posts in the last 30 days $where .= " AND post_date > '" . date('Y-m-d', strtotime('-30 days')) . "'"; return $where; } add_filter( 'posts_where', 'filter_where' ); $query = new WP_Query( $query_string ); remove_filter( 'posts_where', 'filter_where' );but doesn’t show anything
Forum: Themes and Templates
In reply to: How do I display a list of posts from the current month?ok its kinda worked.
If there isn’t a post for that month it comes up with ‘no posts this month’ but when there is a post for the month it just comes up blank… what am I missing?
Forum: Themes and Templates
In reply to: footer problemwheeeeeeey I sorted it out..
I had the
<?php $featuredPosts = new WP_Query(); $featuredPosts->query('category_name=recent-projects&showposts=3');sitting outside the div, knew it’d be something simple.
Forum: Themes and Templates
In reply to: footer problemif this helps anyone this is how I coded the footer
HTML
</div><!-- sidebar --> </div><!-- wrapper --> <div class="clear"></div> <div id="footer"> <div id="footer-text">Copyright © 2012. Terry Tilley || Web Designer powered by WordPress</div> <!-- footer-text --> </div><!-- footer --> <?php wp_footer(); ?> </body></html>CSS
Paste Bin LinkSooo I decided to check something, I decide to put just 2 posts so that the footer doesn’t mess up and then put in another post but just using straight html code and it doesn’t mess up then… confused or what!
Forum: Themes and Templates
In reply to: footer problemonly errors where simple little ones like not putting the alt other than that its fine. I’m sooo lost now.
Forum: Themes and Templates
In reply to: footer problemNo haven’t but I shall now and report on the out come.
Thank you.
Forum: Themes and Templates
In reply to: How do I make a WordPress theme from HTML??Ok great! Thanks for that I’ll have a read up on it now.
I’ve managed to cut my HTML file into header.php, footer.php, sidebar.php and index.php and preview it and it all looks good. I’ve just got to add in all the code to make it show my posts.Terry