For an unauthenticated user, they are only seeing posts from Dec. 2013 or older. I was not admin on this blog until this week, so I don’t know what updates were made around December of last year – if any.
The theme is custom. I am guessing that the archive.php file was either modified improperly or that a plugin is causing an issue.
Any suggestions? All help appreciated. Thanks!
]]>I recently modified Categories.php for a friend’s website. The website is using the Twenty Twelve theme that I have customised to his specifications. I modified Categories.php in the following way:
<?php
$i = 0;
query_posts($query_string.'&posts_per_page=10');
/* Start the Loop */
while ( have_posts() ) :
the_post();
$post = get_post(get_the_ID());
?>
<div class="custom-archive-item" style="<?php if($i == 0 || $i == 2 || $i == 4) echo "border-bottom: none;"; // awesome hacks ?>">
<h1 class="custom-archive-h1"> <a href="removed"><?php echo $post->post_title; ?></h1></a>
<div class="custom-archive-date"> <div class="custom-archive-label"><p>Posted on: </p> </div><?php echo the_time("F dS Y"); ?></div>
<div class="custom-archive-thumb"> <p><?php echo_first_image(get_the_ID()); echo get_the_excerpt(); ?></p></div>
<p>?</p>
<?php $i++; endwhile; ?>
Every time a user clicks on an “archive” link, for example “June”, it won’t just show posts from that month, but posts from the beginning of time.
Could anybody help please? see the website at: https://www.nbanewssource.com the archive links are in the sidebar.
Thank you.
]]>I am trying to create a category loop based on the code I have paste binned https://pastebin.com/ent6Jq9B , which I can control so if I make a News page, it ONLY displays news posts. If I make a Books page, it will only display a book post, etc…
I am using Mystique theme, latest updated version extended and I am not getting anywhere fast.
What I need to do is create a category-news.php as a template for my page, a category-book.php template, etc… but using the code attached from Mystique. I just can’t figure how to do t?
I did try “Pages link to” plugin, which was NEARLY perfect. It just didn’t show in the navigation bar that I was actual on that page.
I am new to this, so any code examples based on my code would be great!
Cheers
]]>I am a newcomer to WordPress, but am really trying to get to grips with it.
Not sure if I have to amend the categories.php template or if there may be a way of doing this within the WordPress settings?
Really stuck on this one. Any help would be great.
My test site: https://atinymind.co.uk/test/
Many thanks!
]]>Any suggestions?
]]>I go to ADMIN – MANAGE but Categories is missing. I can still select the three I created the first day I made the website, but I can’t create any new ones.
In my database, all my posts are under id:0. I am completely lost. I am trying to put a magazine forum on my site and I can’t because I don’t have the code id’s or categories page to use it.
Can someone help me please!
]]>At home it just tryes to download categories.php, here in school where i am now it just shows page cannot be found.
Anyone that can help me out and tell me why this happends?
I am not sure why it is doing this since the categories.php file is intact on the server.
Any thoughts as to what I did wrong?
]]>