paa1605
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to display current page number on category archives?Got it working with the plugin you suggested! Thanks a lot for your help.
Forum: Fixing WordPress
In reply to: How to display current page number on category archives?Thanks for the reply.
This doesn’t seem to work. Im very new on pagination and i currently use the <?php previous_posts_link(‘Previous’) ?> and <?php next_posts_link(‘Next’,”) ?> code to let users change page. The code that queries the posts and outputs them is <?php $posts = query_posts($query_string . ‘&orderby=date&order=DESC’); ?>. There is no mention of ‘paged’ in the arguments or query so maybe that is the reason why it didn’t work.
Thanks for your help though.
Forum: Fixing WordPress
In reply to: Help needed in adding an 'else' query to some codeJust a follow up question,
Im having trouble with the if/while part of this code. It works but i get errors when i try to move it about so that ‘if’ the query returns true then it outputs a certain div, then after this div start the ‘while’ portion of the code in a separate div.
Can anyone help in getting this code to work properly but to follow a if/while/else format so i can get the layout looking correct whether the query returns posts or not.
Thanks.
Forum: Fixing WordPress
In reply to: Help needed in adding an 'else' query to some codeCheers David, i tried the code you provided and it worked! Many thanks.
Forum: Fixing WordPress
In reply to: Help needed in adding an 'else' query to some codeThanks for the quick reply keesiemeijer.
I tried what you suggested but it caused the dreaded white screen and must have caused an error in the code. I think it may be due to some other code i have on my page so i have pasted the entire page code over at pastebin and hopefully someone can help in resolving my issue. Thanks for your help in this matter.
Forum: Fixing WordPress
In reply to: How to show posts published in current month?Fantastic!
Thanks very much for all your help.
Forum: Fixing WordPress
In reply to: How to show posts published in current month?Thanks for this!
I got it working using the following code but when i try to exclude a certain category of posts from showing (category with an id of 24 in this case), it ignores the category part. Am i missing something in the code?
<?php
$month = date(‘n’);
$query = new WP_Query( ‘monthnum=’ . $month, ‘cat=-24’);
?><?php while ( $query->have_posts() ) : $query->the_post(); ?>
Forum: Fixing WordPress
In reply to: Can anyone fix this code so it links to the parent category?Finally figured this out! For anyone that may be interested, here it is..
Forum: Fixing WordPress
In reply to: Show posts within X days, help needed in tweaking working codeFantastic! Worked perfectly. Thanks ever so much.
Thanks for the reply, i look forward to the new version of the plug-in that will hopefully allow me to do this.
Thanks for the reply.
Could you just explain a little more as to what you mean by using the filter and running my own stripping code? I’m quite new to wordpress so don’t fully understand what i need to do. I have located the code in the plug-in file breadcrumb_navxt_class.php where it mentions the bcn_breadcrumb_title.
public function set_title($title)
{
//Set the title
$this->title = apply_filters(‘bcn_breadcrumb_title’, __($title, ‘breadcrumb_navxt’));
}Do i need to change this functions to one that strips html?
Thanks for your patience and help with this.
Forum: Fixing WordPress
In reply to: Problem with html code in post titleAwesome! Worked perfectly. Thanks very much.
Forum: Fixing WordPress
In reply to: How do you display posts from the last 7 and 30 days?Ok, i used the following code but its isn’t working. Can anyone help fix it? Im trying to show all posts published in the last 30 days.
Thanks in advance to anyone that can help
Forum: Fixing WordPress
In reply to: How do you display posts from the last 7 and 30 days?Thanks for that. I think i should be able to get it working based on the examples on those pages. Cheers.
Forum: Fixing WordPress
In reply to: Help needed with header code pleaseThanks, never thought of that!
Cheers for the help, i’ll have a play with the plug ins and hopefully i can get it sorted.