mheathgriffin
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Problems with permalinks, next_posts_linkIs anyone else having this problem in 2.8.x? I followed that blog advice, but the code has changed since 2.7.x yet I’m still having issues. It appears that there has been a bug ticket sent in with a milestone set to be fixed in 2.9. I’d really like to have post navigation work properly with custom permalinks, so if anyone has a fix or a clean hack that would be great.
– Heath
Forum: Fixing WordPress
In reply to: Server migration causing major issuesJust wanted to say thanks again. I was able to fix all my issues with this one piece of information!
– Heath G.
Forum: Fixing WordPress
In reply to: Server migration causing major issuesMichael,
Thanks for that link. I spent a good four hours last night trying to find where I could make that change and using that information I was able to fix part of the problem in under five minutes. While I’ve still got some errors to work through, that definitely helped me out tremendously!
Thanks again,
– Heath G.
Forum: Fixing WordPress
In reply to: Using if statement to display info based on page title@jcow or any one else that might know, I’ve come across another issue using query_posts in this way. Right now everything seems to work fine, but while using next/prev links, each subpage shows the same latest 10 entries rather than older/newer entries. I’ve included the full page code and a link to the site in hopes that someone can see my error.
<div id="main"> <h1><?php the_title(); ?></h1> <?php if (is_page('about') || is_page('shotguns') || is_page('rifles') || is_page('handguns') || is_page('accessories')) : while (have_posts()) : the_post();?> <div id="page-info"><?php the_content(); ?></div> <?php endwhile; endif; ?> <?php if( is_page('shotguns') || is_page('rifles') || is_page('handguns') || is_page('accessories') ){ $page_name = $wp_query->post->post_name; query_posts('category_name='. $page_name); while (have_posts()) : the_post(); ?> <div class="search-excerpt"> <h3><?php the_title(); ?></h3> <div class="excerpt"><?php the_excerpt(); ?></div> <p class="permalink"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permalink to <?php the_title_attribute(); ?>">Read more...</a></p> </div> <p class="date"><?php the_time('l, F jS, Y') ?></p> <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> <?php endwhile; } ?> <!-- Page Navigation --> <div class="pages"> <div class="newer"><?php previous_posts_link('« Previous 10 Entries'); ?></div> <div class="older"><?php next_posts_link('Next 10 Entries »'); ?></div> </div> <div class="pages-shown"> <?php if (function_exists('wp_searchheader')) : ?> <?php wp_searchheader()?> <?php endif; ?> </div> </div>
Thanks in advance for any and all help
Forum: Fixing WordPress
In reply to: Execute php command based on what page isn’t activeThanks stvwlf I’ll give that a try. I swear i miss the most obvious mistakes sometimes!
That worked. For those looking for the correct code, here ya go:
<li><a href="/news"<?php if (!is_home() && !is_page('about') && !is_page('past_conferences') && !is_page('upcoming_conferences') && !is_page('contact') && !is_page('join')) : ?> class="active" <?php endif; ?>>News</a></li>
Forum: Fixing WordPress
In reply to: How to display the number of search results found (redux)I found a nice plugin that does the trick. With a little customization, you can easily display the results exactly as you want.
– Heath G.
Forum: Fixing WordPress
In reply to: How to display the number of search results found (redux)This is great to show how many posts are currently displayed out of a total of posts, but does anyone know of a way to show which section of posts are being displayed? For example the text returned would be:
Showing 11-20 of 54 posts?
If you look at www.ads-software.com’s search results, this is basically what I’m trying to achieve.
I would prefer not to use a numbered system similar to that of the pagenavi plugin if at all possible.
Thanks,
– Heath G.
Forum: Fixing WordPress
In reply to: Using if statement to display info based on page titleThanks jcow,
I just arrived at the same conclusions myself. The actual problem was my ‘-‘ typo needed to be an ‘=’. That being said, I’m inclined to go with your variation as I’ve fiddled with a more cumbersome way of using the wp_query but I like your cleaner code instead. Thanks for the quick reply!
– Heath G.