<div id="currentcategory">
<div id="thepost"> <! -- the newest post -->
<a class="alignleft" href="https://site.com/currentcategory">Back to Current Category Page</a>
<?php next_post_link('%link', 'Next post in category', TRUE); ?>
</div>
<div id="thepost">
<?php previous_post_link('%link', 'Previous in category', TRUE); ?>
<?php next_post_link('%link', 'Next post in category', TRUE); ?>
</div>
<div id="thepost">
<?php previous_post_link('%link', 'Previous in category', TRUE); ?>
<?php next_post_link('%link', 'Next post in category', TRUE); ?>
</div>
<div id="thepost"> <! -- the oldest post -->
<?php previous_post_link('%link', 'Previous in category', TRUE); ?>
<a class="alignright" href="https://site.com/currentcategory">Back To Current Category Page</a>
</div>
</div>
How do I show “back to category” only in oldest and newest post in a specific category.
[Moderator Note: No bumping, thank you.]
]]>$sticky=get_option('sticky_posts');
$args=array(
'ignore_sticky_posts'=> 1,
'post__not_in' => $sticky,
'post_type' => 'post',
'paged'=> $paged,
'posts_per_page'=> 6
);
$bizsliderq = new WP_Query($args);
Is there a way I could make it start with the second most recent post, rather than the first? I’ve seen a few solutions on this board that might be adaptable to this situation, but none have worked thus far. If I need to add any additional pieces of the code or need to supply more information, let me know. Thanks!
]]>I’m using Yoast SEO. I’m not sure if it’s something with the plugin but something is taking the meta data from the newest post and applying it for every other one. Does anyone know how to fix this?
I’m using theme1318
P.S.
Forgive me, I do not have time at the moment to download the dev. version and test it out there.
https://www.ads-software.com/extend/plugins/wordpress-seo/
]]>I’m using Yoast SEO. I’m not sure if it’s something with the plugin but something is taking the meta data from the newest post and applying it for every other one. Does anyone know how to fix this?
I’m using theme1318
]]><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head profile="https://gmpg.org/xfn/11">
<meta HTTP-EQUIV="REFRESH" content="0; url=https://sarjakuva.tuukkavirtaperko.net/?p=<?php $newest_post_id ?>">
</head>
</html>
It only creates a page that keeps reloading itself. Does anyone know what went wrong here?
]]>I found this code on the forums but it only displays info such as date and title of the newest post.
<?php $postslist = get_posts('numberposts=1'); ?>
<?php foreach ($postslist as $post) : setup_postdata($post); ?>
<li class="lnk2">
<?php the_date(); ?><br /><?php the_title(); ?>
</li>
<?php endforeach; ?>
Does anyone have a solution? =(
]]>My blog is currently just using the default entire blog postings page as the home page.
What I want is, a simple home page that displays short versions of each category’s newest post. I only have five categories, so it should be fairly small.
And then at the top with the links to the other blog pages, a link to the old default with all the postings.
And if a user clicked on one of the newest on the front page, it would either take them to the category or that post.
]]>If anyone can help me by pointing me to the right direction I would really appreciate it.
Thanks in advance.
]]>My blog lives in /blog on my server.
My homepage is, well, the home page. I want to display:
Date/Time
Title (linked)
<First X Characters/Words> of Newest Post
However, I want to display this in my layout and my styles–FeedBurner’s BuzzBoost only allows you to display everything at once, and that just not how my design is set-up, so that does not work for me.
I’m certain that I am not the only person attempting to handle this, but I’ve yet to see that solution.
Would it be possible to just query the WP database from the home page and pull down the latest post information?
]]>I need a page taht looks like it : https://www.ativismo.com/noticias/index.htm ,how could you see the first post is diferent of rest, then, anybody knows how to do it with WP ? has some plugin to do it?
thanks a lot!!!!
]]>