joshmac
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to rewrite Category Permalink StructureHmmm, I figured as much. Ok, now revert the changes you made to the single.php file and create a category.php file with the following information:
<?php get_header(); ?> <div id="content"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <!-- item --> <div class="item entry" id="post-<?php the_ID(); ?>"> <div class="itemhead"> <h1><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h1> <div class="date"><?php the_time('F jS, Y') ?> </div> <?php //the_content('Continue reading »'); ?> <small class="metadata"> Filed under <span class="category"><?php the_category(', ') ?> </span> | <?php edit_post_link('Edit', '', ' | '); ?> <?php comments_popup_link('Comment (0)', ' Comment (1)', 'Comments (%)'); ?></small> <div style="clear:both;"></div> <div style="clear:both;"></div> </div></div> <!-- end item --> <?php comments_template(); // Get wp-comments.php template ?> <?php endwhile; ?> <div class="navigation"> <div class="alignleft"><?php next_posts_link('« Previous Entries') ?></div> <div class="alignright"><?php previous_posts_link('Next Entries »') ?></div> <p> </p> </div> <?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; ?> <!-- end content --> </div> <div id="secondary"> <?php include(TEMPLATEPATH."/l_sidebar.php");?> <?php include(TEMPLATEPATH."/r_sidebar.php");?> </div> <?php get_footer(); ?>
Forum: Fixing WordPress
In reply to: How to rewrite Category Permalink StructureOk, so I was looking at the files included in the theme you are using. The same code/structure is used for both the index.php and single.php files. I believe that you will need to change some code in the single.php file from this:
<?php the_content('Continue reading »'); ?>
To this:
<?php //the_content('Continue reading »'); ?>
I am not sure what is going to happen when you click on the title link, but this will let you see if this is the file you need to be looking at in order to create a category list. If it doesn’t work, then revert the changes you made.
Forum: Fixing WordPress
In reply to: How to rewrite Category Permalink StructureNo problem, I am glad that you finally got it sorted out. I will be thinking about the list page and if I come up with anything, I will let you know.
Forum: Fixing WordPress
In reply to: this problem is killing me!!!Do you have anything in your error logs? Make sure that there are no unusual characters that you might have mistyped in your wp-config.php file.
Forum: Fixing WordPress
In reply to: How to rewrite Category Permalink StructureHmmm, not sure. Your new url structure to the list is https://capecodbranding.com/blog/posts/sorted-by-category/apple/ Without knowing where /posts/ and /sorted-by-category/ is coming from and how it is being generated, its a little difficult to figure out a fix. Also, you have this structure: https://capecodbranding.com/blog/posts/sorted-by-category/ and this structure: https://capecodbranding.com/blog/posts/ Do you know if Articles is a page? Also, it is setup like an archive page. Not sure if that helps or not.
Forum: Fixing WordPress
In reply to: Home Page Shows Blank After InstallationDid you try loading a fresh copy of the index.php file?
Forum: Fixing WordPress
In reply to: fixing Canonical URLs with htaccessYes, try that code and make sure to check out the website url and blog url in your General settings.
Forum: Fixing WordPress
In reply to: fixing Canonical URLs with htaccessOhh, sorry, just saw that I missed something, the code should have been:
# BEGIN WordPress <IfModule mod_rewrite.c> Options FollowSymLinks RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{HTTP_HOST} ^yourdomain\.co\.uk$ [NC] RewriteRule (.*) https://www.yourdomain.co.uk/$1 [R=301,L] RewriteRule . /index.php [L] </IfModule> # END WordPress
I forgot to include Options FollowSymLinks. Without this, it will cause a 500 internal error. Also, sometimes it written as Options +FollowSymLinks.
Forum: Fixing WordPress
In reply to: fixing Canonical URLs with htaccessOk, can you tell me what your error logs says? Also, is your website and blog url https://www.fatcowmedia.com?
Forum: Fixing WordPress
In reply to: Mapping new domain nameYou are using wordpress.com right? Is there a domain mapping feature enabled for your account?
Forum: Requests and Feedback
In reply to: SPAMHave you thought of trying this plugin. It works really well.
Forum: Fixing WordPress
In reply to: fixing Canonical URLs with htaccessMaybe try this:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{HTTP_HOST} ^yourdomain\.co\.uk$ [NC] RewriteRule (.*) https://www.yourdomain.co.uk/$1 [R=301,L] RewriteRule . /index.php [L] </IfModule> # END WordPress
This should be all you need. No need to declare RewriteEngine On twice.
Forum: Fixing WordPress
In reply to: How to rewrite Category Permalink StructureIf there was not one there to begin with then, I wouldn’t add it, but then I don’t understand your error message. Why is it looking for category.php? Also, if you are using the theme I think you are using, make sure the following files are there: r_sidebar.php, l_sidebar.php, & sidebar.php.
Forum: Fixing WordPress
In reply to: How to rewrite Category Permalink StructureYes @capecodbranding. I suggest using the code that I pasted above. That is the standard .htaccess code for WordPress. To fix the error message, I would suggest loading a fresh copy of the category.php file in your theme’s folder.
Forum: Plugins
In reply to: WP back up pluginsDid that plugin work for you? If not, there is another I can suggest.