billdennis6
Forum Replies Created
-
Forum: Networking WordPress
In reply to: a redirect problem in my blogNo, it kinda hapopened right after I changed themese for the blog at https://blogpeoria.com
Boy, there’s a hint, huh?
Forum: Themes and Templates
In reply to: Today's blog posts ONLY on front page of my blogI’m sorry, this didn’t come through. You can look at the page’s entire code here:
All the php tags are closed. I am not getting any error messages. It’s just that when I pate ANY Query code before the Look, the page stops rendering.
Forum: Themes and Templates
In reply to: Today's blog posts ONLY on front page of my blogHere is is:
[62 lines of 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]
Forum: Themes and Templates
In reply to: Today's blog posts ONLY on front page of my blogBoy. each time I add that line, it breaks my blog. The blog stops rendering when it reached that line of code.
Forum: Themes and Templates
In reply to: Today's blog posts ONLY on front page of my blogSo, forgive me for being dense, but is THIS what I have to add right above The Loop?
<?php // The Query $today = getdate(); $query = new WP_Query( 'year=' . $today["year"] . '&monthnum=' . $today["mon"] . '&day=' . $today["mday"] ); // The Loop while ( $the_query->have_posts() ) : $the_query->the_post(); echo '<li>'; the_title(); echo '</li>'; endwhile; // Reset Post Data wp_reset_postdata(); ?>
Forum: Themes and Templates
In reply to: Today's blog posts ONLY on front page of my blogOk, I have ONE question:
Exactly where does the LOOP start on this index page:
<div id="content"> <?php if (have_posts()) : ?> <a href="https://blogpeoria.com/"><div align="center"><img src="https://blogpeoria.com/files/2012/04/blogpeoriabanner.png" width="550"></div></a><br> <?php while (have_posts()) : the_post(); ?> <div <?php post_class() ?> id="post-<?php the_ID(); ?>"> <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'f2'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a></h2> <div class="postmetadata"> <?php if(f2_option('show_author') == 'on') : ?> <?php _e('Posted by', 'f2'); ?> <span class="postauthor"><?php the_author_posts_link(); ?></span> <?php _e('on', 'f2'); ?> ...
Thanks. Dumb question, I know …
Forum: Themes and Templates
In reply to: Today's blog posts ONLY on front page of my blogThank you!!!
Forum: Themes and Templates
In reply to: Today's blog posts ONLY on front page of my blogThanks. So, what I want to do is create a Page using this time parameter, and point toe front page to this new Page.
$today = getdate(); $query = new WP_Query( 'year=' . $today["year"] . '&monthnum=' . $today["mon"] . '&day=' . $today["mday"] );
Exactly where on the Page I’ll create (Ill call it “today.php’) should i insert this parameter?
Again, thanks for all your help.