Quote: Once the articles are older than two days, either remove those URLs from the news sitemap or remove the metadata from the older URLs.
Let’s remove from the sitemap for posts older than 48 hours. Thank you.
]]>Thank you for the beautiful theme.
I have older post button in my home page but it automatically loads the post when i scroll to the bottom part of the page without clicking it. Is there any way to stop it and make it load the post after pressing it ?
]]>https://www.ads-software.com/plugins/wp-rss-aggregator/
]]>[Moderator Note: Please ensure that you are embedding links correctly in your posts. Link corrected.]
]]>I searched but did not find an answer for this:
I have an older page that is updated on a monthly basis. When I upload media to the page, it is added to an old folder (based on when the page/post was created).
Is there a way so that media uploads always go to the current month folder, even on an older page or post? It would be helpful for organization of this content.
Thanks,
Jordan
]]>I looked around the forums and unfortunately I could not find anything that actually solved my problem.
Apparently the theme I am using does not have a built in button for showing older posts. This is a bit problematic since I now have more posts than I want to show on the index page.
I would like to add a “older posts” button to my WordPress index page. I am using the Hemingway theme.
If I understood it correctly i need to add
<?php next_posts_link(‘Older Posts’); ?>
<?php previous_posts_link(‘Newer Posts’); ?>
somewhere in my index.php
I dont have any knowledge of php editing so this is a bit tricky for me.
My index.php currently looks like this
https://pastebin.com/8LwUyaQ3
It would be great if someone could make a copy and insert the code I need to put it. It would really help.
I changed the number of posts allowed in the reading tab in settings from 10 to 15 as temporary solution.
I really hope someone knows what to do! I really appreciate all the help i can get.
Thank you all in advance.
https://watg.ca
This is my index.php file. I added the <?php posts_nav_link(); ?> after <?php endif; ?> and it did nothing.
]]>get_header(); ?>
<div id=”primary”>
<div id=”content” role=”main”><?php if ( have_posts() ) : ?>
<?php twentyeleven_content_nav( ‘nav-above’ ); ?>
<?php /* Start the Loop */ ?>
<?php while ( have_posts() ) : the_post(); ?><?php get_template_part( ‘content’, get_post_format() ); ?>
<?php endwhile; ?>
<?php twentyeleven_content_nav( ‘nav-below’ ); ?>
<?php else : ?>
<article id=”post-0″ class=”post no-results not-found”>
<header class=”entry-header”>
<h1 class=”entry-title”><?php _e( ‘Nothing Found’, ‘twentyeleven’ ); ?></h1>
</header><!– .entry-header –><div class=”entry-content”>
<p><?php _e( ‘Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.’, ‘twentyeleven’ ); ?></p>
<?php get_search_form(); ?>
</div><!– .entry-content –>
</article><!– #post-0 –><?php endif; ?>
<?php posts_nav_link(); ?></div><!– #content –>
</div><!– #primary –><?php get_sidebar(); ?>
<?php get_footer(); ?>
after reading the codex and some of the forum topics i wasn’t able to say to my blog :
<< after 5 posts in the loop, show the “go to older posts” button >>
i’ve taken as already suggested, the twentyten loop.php code :
<?php if ( $wp_query->max_num_pages > 3 ) : ?>
<div id="nav-below" class="navigation">
<div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentytwelve' ) ); ?></div>
<div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentytwelve' ) ); ?></div>
</div><!-- #nav-below -->
<?php endif; ?>
modified it for twentytwelve, but nothing happened. I paste this code on the index.php at the end, at the beginning, after the endwhile, nearly everywhere on the loop, but nothing happened.
i also tried with this simplier codes but i really need your help to end this…
thanks!
]]>