tjobbe
Forum Replies Created
-
Forum: Plugins
In reply to: Next page navigation doesn’t workHi xiaolai, I used your method above and I do now have a More> link on my page, but when i click the link it still shows the same data.
https://www.ribs4u.co.uk/ribs-in-stock/page/2/ is the same as https://www.ribs4u.co.uk/ribs-in-stock/
This is my php:
<?php get_header(); ?> <div id="content"> <?php $myqueryname = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query('showposts=5'.'&paged='.$paged); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <!--h2><a href="<?php //the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php //the_title_attribute(); ?>"><?php //the_title(); ?></a></h2> <small><?php //the_time('F jS, Y') ?> <!-- by <?php //the_author() ?> --></small--> <div class="entry clearfix"> <?php the_content('</p><p class="moreLink">Click here for the full boat details »'); ?> </div> <!--p class="postmetadata"><?php //the_tags('Tags: ', ', ', '<br />'); ?> Posted in <?php //the_category(', ') ?> | <?php //edit_post_link('Edit', '', ' | '); ?> <?php //comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p--> </div> <?php endwhile; ?> <?php else : ?> <h2 class="center">Not Found</h2> <p class="center">Sorry, but you are looking for something that isn't here.</p> <?php endif; ?> <div class="navigation"> <div class="alignleft"><?php previous_posts_link('? Previous') ?></div> <div class="alignright"><?php next_posts_link('More ?') ?></div> </div> <?php $wp_query = null; $wp_query = $myqueryname;?> </div> <?php get_sidebar(); ?> </div> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: Home page – next/previous buttons not working.It does make sense though, the blog posts change daily and people want to see what we have been doing. We do have the relevant categories in the top nav bar, but it would be better if we could have a next/previous button to make it more obvious.
Is it possible?
Forum: Fixing WordPress
In reply to: Home page – next/previous buttons not working.Thanks moshu, so do I just go ahead and delete it, and try and use the standard wordpress php for previous and next?
I tried just commenting out:
//query_posts('showposts=1&cat=3'); ?>
but it really didnt like that!
Forum: Fixing WordPress
In reply to: Home page – next/previous buttons not working.Just a FYI, I’ve searched a bit and not found anything similar, well aware of the other two live posts about the same topic, but having a different problem to those two.
Forum: Fixing WordPress
In reply to: Question about custom fieldsThank you so much!
Forum: Fixing WordPress
In reply to: Search by category, tags, title and postForum: Fixing WordPress
In reply to: Search by category, tags, title and postCan anyone else advise?
Is there a plugin or an option to also search posts by TAGs?
Forum: Fixing WordPress
In reply to: Search by category, tags, title and postIt looked promising at first glance, but in the end it chucked in a lot of radio buttons, tick boxes and generally screwed with my layout too much.
Ideally, I’d manipulate my existing search form to include searching for tags and assosciated categories, is that possible?
i.e, when I have added certain tags to my posts, I’d want the search form to be able to find those tags.
Forum: Fixing WordPress
In reply to: Sell items in my wordpress site, is that possible?TY!
Forum: Fixing WordPress
In reply to: Can I have static content on the home page? (i.e – no blog posts)Excellent, thanks!
Forum: Fixing WordPress
In reply to: Can I have a wordpress blog within my existing site?I only need to have one category, so this would suit me fine!
Thanks Gangleri!
Is this something you can assist with? –> https://www.ads-software.com/support/topic/191014?replies=1
Forum: Fixing WordPress
In reply to: Can I have a wordpress blog within my existing site?The answer to that is YES!
<ul id="nav"> <?php wp_list_pages('title_li=&depth=1') ?> <?php wp_list_categories('title_li=&categorize=0') ?> </ul>
Forum: Fixing WordPress
In reply to: Can I have a wordpress blog within my existing site?How could this be edited to show the categories?
Forum: Fixing WordPress
In reply to: Can I have a wordpress blog within my existing site?You could just use the “blogroll” (“manage”->”links”) for that.
How would that work? I do not have a sidebar in my site and don’t intend on having one either.
Maybe I just don’t understand the blogrol – never used it before.
Forum: Fixing WordPress
In reply to: Can I have a wordpress blog within my existing site?Veneratio – I don’t *quite* think it is the same thing.
You can not post blogs to pages, only to categories. Create a category and name it as you wish, then when you create a new post (note – NOT a page) there will be an option to choose to post TO the category you just made.
Now, back on topic.
Assuming I have a category called BLOG – how do I have that category in my nav bar at the top?