goodonpaper
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: show 3 most recent posts under static home page (2.2)I’m using similar code with a view to displaying the 5 most recent stories in the same category as the story I’m currently reading. However, in the line;
<?php $posts = get_posts( "category=5&numberposts=5" ); ?>
Is it possible to declare the category value as something WordPress will read as the current category?
Forum: Fixing WordPress
In reply to: Archives not displayingAlright, continuing to not be having much luck – is anyone aware of any kind of work-around for this?!
Forum: Fixing WordPress
In reply to: Archives not displayingThis look good, no?
https://www.scriptygoddess.com/archives/2004/07/24/nextprevious-posts-in-same-category/Truely boggled!
Forum: Fixing WordPress
In reply to: Archives not displayingSurely theres a way around it – a plugin or something?
Forum: Fixing WordPress
In reply to: Archives not displayingI’m not using anything out of the ordinary – what could possibly be throwing it off?
Forum: Fixing WordPress
In reply to: Archives not displayingIs there any way to get past that, though?
Forum: Fixing WordPress
In reply to: Archives not displayingSorry, on reading up on this I now understand the structure.
However, I’ve tried applying this to https://iheartau.com/wordpress/news/ and the ‘next page’ link is giving me a 404 error and I don’t know why, as previous entries do exist – am I missing a template file or something wrong with my permalink structure?
Forum: Fixing WordPress
In reply to: query_posts questionThanks so much, its been bugging me for days!
Forum: Fixing WordPress
In reply to: query_posts questionPerfection – thank you!
Forum: Fixing WordPress
In reply to: Archives not displayingAlright.
Alongside the category-x.php file, I want a page automatically generating a date-ordered list of all entries within a specific category.
Make sense?
Forum: Fixing WordPress
In reply to: query_posts questionAlright then.
It’s an excerpt from a piece of code on my home.php, where I want to pull the last entry from a specific category to be displayed. You’ll see on iheartau.com/wordpress – after the advertisement – that it’s already displaying, but it’s displaying the latest entry overall, not from the category specified.
The code running in that particular div is:
<?php if (have_posts()) : ?>
<?php query_posts(‘cat=3’); ?><h1 class=”subtitle_home”><?php the_title(); ?></h1>
<h2 class=”tagline”><?php echo c2c_get_custom(‘tagline’); ?> <?php edit_post_link(‘Edit’,'(‘, ‘)’); ?> </h2><div class=”storycontent”>
<?php the_excerpt_reloaded(70,”,”, true, ‘<br><div class=”moretext”>Read On …</div>’); ?>
<?php wp_link_pages(); ?>
</div><?php else : ?>
<p>No post found.</p>
<?php endif; ?>Any help provided would be extraordinary.
Forum: Fixing WordPress
In reply to: Archives not displayingTheres nothing in the documentation about the /archive/ … part of the URL – presumably I need to include a structure tag or something? How do I generate an archive alongside using the category-x.php file to display selected items?
My permalink structure is currently “/%category%/%postname%/”
Forum: Fixing WordPress
In reply to: query_posts questionBut shouldn’t that code work, hypothetically? Take a look at https://iheartau.com/wordpress and scroll past the ad, you’ll see what I’m trying to do.
Forum: Fixing WordPress
In reply to: query_posts questionNo, this code is for the home.php – to display the newest entry from a category. My reply about the “styled category page” was misplaced.
Forum: Fixing WordPress
In reply to: Archives not displayingIf I don’t have archives in my structure, how do I add it? Is that the problem?