verycheeky
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Show only X Category Posts on PageHello All,
This works for me.. HOWEVER
Pagination does not work!!!!
‘<div class=”navigation”>
<?php if(function_exists(‘wp_pagenavi’)) { wp_pagenavi(); } ?>
</div><!– Closes navigation–>’when i click on page 2 of posts it does not show the rest of the posts but only results on first page.. any parameter i need to add?
thank you
here is the code
‘——————————————————
<?php /* Template Name: page_restaurants */ ?> <?php get_header(); ?> <div id="main"> <div id="contentwrapper"> <?php global $more; $more = 0; ?> <?php query_posts('category_name=restaurants'); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <div class="topPost"> <?php edit_post_link('Edit', ' | ', ''); ?></span></p> <h2 class="topTitle"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2> <p class="topMeta">Location » <?php the_category(', '); ?> <div class="topContent"><?php the_content('(More Info...)'); ?></div> <div class="cleared"></div> </div> <!-- Closes topPost --><br /> <?php endwhile; ?> <div class="cleared"></div> <?php endif; ?> <div class="navigation"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> </div><!-- Closes navigation--> <div class="cleared"></div> </div> <!-- Closes contentwrapper--> <?php get_sidebar(); ?> <div class="cleared"></div> </div><!-- Closes Main --> <div class="cleared"></div> <?php get_footer(); ?>Forum: Fixing WordPress
In reply to: Image Resize RenameI would LOVE to know as well!
Forum: Fixing WordPress
In reply to: wysiwyg editor reformatting my HTMLHere is my solution, Microsoft Live Writer
I would actually disable the visual editor for current user in wordpress and get used to working in the code view environment in WordPress.
Why? You will learn code and it will make things easier when you are tying to troubleshoot format issues, tweak themes ect. keeps you sharp, especially if you broke up with Dreamweaver and embraced WordPress press Like I did! (well not entirely)
OK… Here is what I DO..
- ► Cut code from post and Past Code into LIVE WRITER code View
- ► switch to Edit view in Live Writer ( WYSIWYG )
-
► Edit away! return will add a <p> before and </p> after each
paragraph, you can easily add a rel nofollow and title for links, easily add alt title and text, etc plugins, add youtube video etc etc and NO I don’t work for microsoft! - ► Switch back to Code View
- ► ctrl+a » ctrl+x
- ► go back to WordPress post and = ctrl+v
Oh yea.. Keep it simple
Wordress and Microsoft Rock!