nolimit966
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Help exclude categories from the blog feedI have tried to add $query_string . ‘&cat=-230’. before the <?php query_posts( but nothing happens. I have also tried to remove the category from the query but not luck. If anyone could give e a pointer id really appreciate it.
Cheers
Forum: Fixing WordPress
In reply to: query posts from 2 categoriesApologies, fixed now. missed the commar.
change :
query_posts(‘showposts=3&cat=229&75’); if (have_posts()) : ?>to:
query_posts(‘showposts=3&cat=229,75’); if (have_posts()) : ?>Forum: Themes and Templates
In reply to: Feature a sticky on my homepagefixed it. I was missing the <?php wp_reset_query(); ?> at the bottom of my first loop.
<?php query_posts(array('post__in'=>get_option('sticky_posts'),'showposts' => 2 )); ?> <?php while (have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php the_content(''); ?> <?php endwhile; ?> <?php wp_reset_query(); ?>
so the code above worked great.
Forum: Themes and Templates
In reply to: Feature a sticky on my homepagei tried that, the problem is now that its showing the data from the other loop on the page i.e the ‘latest news’ loop.
Forum: Themes and Templates
In reply to: Feature a sticky on my homepagebump
Forum: Themes and Templates
In reply to: Feature a sticky on my homepageSo far i have this:
<?php query_posts(array('post__in'=>get_option('sticky_posts'),'showposts' => 1 )); ?> <?php while (have_posts()) : the_post(); ?> <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2> <?php the_content(''); ?> <?php endwhile; ?> <?php wp_reset_query(); ?>
But the problem is its not STICKY posts that are showing. its just showing a random post.
Any help would be appreciated.
Thank you
Forum: Fixing WordPress
In reply to: Limiting Characters within my excerpt without cutting a wordi managed to fix this, i changed the_excerpt to get_the_excerpt and it worked fine.
Forum: Themes and Templates
In reply to: adding a catagory of blogposts to my homepageits a bespoke theme i am developing myself
Forum: Fixing WordPress
In reply to: How to add a navigation bar to my current HTML in headeri managed to get help doing this. I had to use the Walker class in WordPress & it worked really well.
All complete so far.
ThanksForum: Fixing WordPress
In reply to: How to add a navigation bar to my current HTML in headeri need to create some type of array dont I to add my navigation link titles into each separate li id.
Forum: Fixing WordPress
In reply to: How to add a navigation bar to my current HTML in headeri didn’t download the theme, i created it from scratch.
Forum: Themes and Templates
In reply to: Creating a customised wordpress page templatethanks a lot, i will take a look now Paul.
Thank you!
I have changed them back to default now but still getting the error
Permalinks is set to Post name
Forum: Fixing WordPress
In reply to: Admin panel gone & cannot login ?!thank you very much i will try that now & see if it resolves anything.
Cheers