jdmcmillan
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Static Home Page not showing anymore – now it’s most recent postsI 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(); ?>
Forum: Plugins
In reply to: wordpress audio player plugin problemThanks so much for ClaytonJames – I had been looking for the solution to this issue for a while!
Forum: Fixing WordPress
In reply to: Using anchor links with pretty permalinksseems to be working actually (most of the time anyways)
Forum: Fixing WordPress
In reply to: Listing search terms and matching result titles in sidebarWell 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.
Forum: Fixing WordPress
In reply to: Listing search terms and matching result titles in sidebarDoes anyone know whether this is even possible?
Forum: Installing WordPress
In reply to: Parent Child relationship without slashMaybe I can edit an install file if there isn’t anything in built in?
Forum: Installing WordPress
In reply to: Parent Child relationship without slashI 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
Forum: Fixing WordPress
In reply to: Updating Permalink StructureTried 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!
Forum: Fixing WordPress
In reply to: Updating Permalink StructureOk, 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 WordPressAnd permalinks still aren’t working. Any ideas? Thanks for all the help – I need it!
Forum: Fixing WordPress
In reply to: Updating Permalink StructureSo 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 WordPressBut 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!
Forum: Fixing WordPress
In reply to: Updating Permalink StructureShould 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…
Forum: Fixing WordPress
In reply to: Updating Permalink StructureOk 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…
Forum: Fixing WordPress
In reply to: Updating Permalink StructureI 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]
Forum: Fixing WordPress
In reply to: Updating Permalink StructureMichael – 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…
Forum: Fixing WordPress
In reply to: Updating Permalink StructureIs 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…