paa1605
Forum Replies Created
-
Thanks for the reply. The blog posts don’t have a link through to their actual page as i was trying to avoid having duplicate content. The blog page already displays the full post so there was no need to have it repeated on a separate page.
I don’t think thats the problem though. Its something to do with the home page itself and why its not being indexed correctly.
Forum: Fixing WordPress
In reply to: Unwanted paragraph tag driving me crazy! Please helpYou’re a genius! Thanks ever so much. That’s worked perfectly.
Forum: Fixing WordPress
In reply to: Unwanted paragraph tag driving me crazy! Please helpI am, it’s a theme i made myself
Forum: Fixing WordPress
In reply to: Unwanted paragraph tag driving me crazy! Please helpWould that go in the main websites css or the plug-ins css? Thanks
Forum: Fixing WordPress
In reply to: Unwanted paragraph tag driving me crazy! Please helpYes if that would lose that particular tag. Is this possible? Thanks
Forum: Fixing WordPress
In reply to: Unwanted paragraph tag driving me crazy! Please helpIt’s still there.
After the span tag within the dd tag right after the label tag which contains ‘your message’.
Forum: Fixing WordPress
In reply to: Get category grandparent help!Absolutely perfect!!
Thanks Mac, very much appreciated ??
Forum: Fixing WordPress
In reply to: How to over-ride wordpress settings and include pagination.Thanks for the reply.
You may have needed to scroll to the right to see it but the code does include a endwhile and endif statement, as well as a link to page 2,3 etc using the posts_nav_link function. From what i read on the codex the next_post_link should be used on the post (single.php) code, and not a category like in this instance.
Anyway with the current code below it displays the correct number of posts, from the correct category, with a link to page 2. However, page 2 just shows the content from my home page, even though the url is reading mysitedotcom/page2.
Any help with fixing this is much appreciated.
<?php get_header(); ?> <div id="white-background"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'cat' => 2, 'posts_per_page' => 30, 'paged' => $paged ); query_posts($args); ?> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <h1><?php the_title() ?> </h1> <?php endwhile; ?> <?php posts_nav_link(); ?> <?php else: ?> Sorry, there are currently no articles in this category. <?php endif; ?> </div> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: How to over-ride wordpress settings and include pagination.It’s as simple as this right now as just trying to get the code to work before i style it…
<?php get_header(); ?> <div id="white-background"> <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $args = array( 'cat' => 2, 'posts_per_page' => 30, 'paged' => $paged ); query_posts($args); ?> <?php if(have_posts()) : while(have_posts()) : the_post(); ?> <h1><?php the_title() ?> </h1> <?php endwhile; ?> <?php posts_nav_link(); ?> <?php else: ?> Sorry, there are currently no articles in this category. <?php endif; ?> </div> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: How to over-ride wordpress settings and include pagination.Hi,
Yes i’ve read all those and a few other examples i’ve found online. The theme is one that i’m building myself yet i can’t seem to crack this problem. Some of the examples i’ve tried will pull the correct number of posts from the shop category, but when i click on the link to the second page, it just shows the content from the home page, yet the url is saying mysitedotcom/page2.
Very frustrating so any help would be much appreciated.
Forum: Fixing WordPress
In reply to: Help with conditional tag if pagedBrilliant, thanks! Got it working perfectly. For anyone wanting the code in the future…
<?php if( is_paged() ) { ?> <?php } else { ?> <div>...enter content here...</div> <?php } ?>
Forum: Fixing WordPress
In reply to: Help with conditional tag if pagedWould you be kind enough to expand on how this might be written in my code? I tried the following but it didn’t work.
<?php if( $page == 1 ) { <div>..content..</div> } ?>
Forum: Fixing WordPress
In reply to: Help needed with queryWorking!!!!
For anyone that might stumble upon this problem in the future, i finally got it to work. Here is the code…
<?php query_posts( array( 'category__not_in' => array(46), 'category__in' => array($ps_catid), 'paged' => $paged ) );?>
Forum: Fixing WordPress
In reply to: Help needed with queryOk so i have used the following code that i found on the forum from a similar post which works. here it is..
<?php query_posts( array( 'category__not_in' => array(46), 'category_name' => 'nike', 'paged' => $paged, 'orderby' => 'title' ) );?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
The only thing that needs changing is the category name. At the moment i put in a random category to test it, in this case ‘nike’, which works fine, but the page will need to show different posts according to what category was clicked on.
I tried to put in my global parameter of $ps_catid or $ps_catname but it doesn’t work. It just seems to show all posts from several categories.
Anyone able to help?
Forum: Fixing WordPress
In reply to: Help needed with queryThe site isn’t live yet as i’m currently building it on my testing server using mamp.
I’ve not come across this problem before and have tried various things but can’t seem to solve the problem. Very strange.