Forum Replies Created

Viewing 15 replies - 1 through 15 (of 18 total)
  • I was having this same issue. I figured out it was an issue with my theme. I had this as my index.php:

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    <div id="main">
    <div class="main">
    <?php global $query_string;
    query_posts($query_string . "&showposts=-1&orderby=date&order=ASC");
    if (have_posts()) : while (have_posts()) : the_post();
    if (is_single());
    the_content('',strip_teaser,'');
    endwhile; else:
    endif;
    wp_reset_query();
    ?>
    </div>
    </div>
    </div>
    <div id="sidebar">
    </div>
    <?php get_footer(); ?>

    I guess the query is causing the static page to break? I was using that query to reverse the order of my posts (I have an art website and want old at the the top, newest at the bottom).

    When I switch back to this, the static page works correctly:

    <?php get_header(); ?>
    <?php get_sidebar(); ?>
    <div id="main">
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php if (is_page()) { ?>
    <div class="main">
    <?php the_content(''); ?>
    </div>
    <?php } ?>
    <?php if (is_archive()) { ?>
    <div class="main">
    <?php the_content(''); ?>
    </div>
    <?php } ?>
    <?php if (is_single()) { ?>
    <div class="main">
    <?php the_content('',strip_teaser,''); ?>
    </div>
    <?php } ?>
    <?php if (is_archive()) { ?>
    <?php } ?>
    <?php endwhile; else: ?>
    <?php endif; ?>
    </div>
    </div>
    <div id="sidebar">
    </div>
    <!-- Get footer -->
    <?php get_footer(); ?>

    Thanks so much for ClaytonJames – I had been looking for the solution to this issue for a while!

    Thread Starter jdmcmillan

    (@jdmcmillan)

    seems to be working actually (most of the time anyways)

    Thread Starter jdmcmillan

    (@jdmcmillan)

    Well figured out the first part.

    It would be “Search results for “<?php echo $s; ?>”:

    Putting <?php echo $s; ?> puts the search term in there.

    Now just need some help with listing the post titles that match the search term.

    Thread Starter jdmcmillan

    (@jdmcmillan)

    Does anyone know whether this is even possible?

    Thread Starter jdmcmillan

    (@jdmcmillan)

    Maybe I can edit an install file if there isn’t anything in built in?

    Thread Starter jdmcmillan

    (@jdmcmillan)

    I have my own custom theme. I thought it would just be a PHP command. I’m using my php for the template tag “the_category” – it looks like this: the_category(‘+’, multiple), and the parent/child relationship is displayed with a slash (Parent/Child, or for example with Writing as the parent category and Weblogs as the child Writing/Weblogs). I’d like to display it like this: Writing | Weblogs

    Thread Starter jdmcmillan

    (@jdmcmillan)

    Tried Michael’s last directions and no luck. I’ve contacted Yahoo, but haven’t heard anything from them. Will have to contact them again. But looks like eventually I will be moving to a new host, because I need one that can make nice permalinks… If anyone comes up with any other ideas please let me know. I’ll write back with what I hear from Yahoo. Thanks again for all the help!

    Thread Starter jdmcmillan

    (@jdmcmillan)

    Ok, so wordpress is installed at the root, not in any folders. And these are the settings I chose for my permalink structure – for archives: /archive/%postname% and for categories: /category

    Then I put this into the .htaccess:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    And permalinks still aren’t working. Any ideas? Thanks for all the help – I need it!

    Thread Starter jdmcmillan

    (@jdmcmillan)

    So this is the code I put in my .htaccess file:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /mydirectoryname/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /mydirectoryname/index.php [L]
    </IfModule>
    # END WordPress

    But it still didn’t work – am I supposed to change “mydirectoryname” to something? Should “# BEGIN WordPress” or “# END WordPress” not be there? Anything else that I need to customize? Thanks!

    Thread Starter jdmcmillan

    (@jdmcmillan)

    Should I be worried about losing anything by trying to edit .htaccess? So febwa1976 – you edited your file as you described and now you can do pretty permalinks on yahoo without index.php? Thanks…

    Thread Starter jdmcmillan

    (@jdmcmillan)

    Ok so in WordPress’s file manager, .htaccess is there. The file looks like this so far:

    # BEGIN WordPress

    # END WordPress

    What do I put in there to make it so pretty permalinks work? Thanks…

    Thread Starter jdmcmillan

    (@jdmcmillan)

    I put it in my plugins folder and activated it, but was still unable to do true pretty permalinks i.e. permalinks without the index.php (note: the index.php method mentioned above did work for me). So the plugin must need something else? Does anybody know what else the plugin might need to make it work?

    Here is the code copied from the pastebin link above:

    [code moderated - the pastebin was invented so you don't post code here]

    Thread Starter jdmcmillan

    (@jdmcmillan)

    Michael – They definitely don’t allow .htaccess.

    I’ve read about a “Customizable Permalink” plugin that is installed with the one-click install. But I can’t seem to find it anywhere on the web. Lots of mentions of it, but no specifics! Frustrating…

    Thread Starter jdmcmillan

    (@jdmcmillan)

    Is there a way to activate their custom plugin without reinstalling the one-click way? I already have installed everything via ftp and am up and running. Thanks…

Viewing 15 replies - 1 through 15 (of 18 total)