Page Name and Permalinks

You have to permanently delete the post from the trash to be able to use that permalink again. At the top of the pages list, where it says All, Published, Trash, click trash and then select permanently delete link for that page.

Post will not load via ajax

All ajax requests should be routed through the handy /wp-admin/admin-ajax.php file. It works with the great WP hooks system. So you send an “action” with your request and use that as part of the action into which you hook your function. So, let’s say your ajax call looks like this (with jQuery) jQuery(‘a.ajax’).click(function(e){ data = … Read more

How to redirect RSS feeds to Feedburner and keep pretty permalinks?

The rules for Feedburner should come before the WordPress rules. And activate the rewrite engine just once. Thatโ€™s enough. ๐Ÿ™‚ <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{HTTP_USER_AGENT} !FeedBurner [NC] RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC] RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/ZoomingJapan [R=302,NC,L] RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>

Echo Permalink in Attachment outside of loop?

Jez, unpatient Jez ๐Ÿ™‚ <?php $args = array( ‘post_type’ => ‘attachment’, ‘numberposts’ => -1, ‘post_status’ => null, ‘post_parent’ => $post->ID ); $attachments = get_posts( $args ); if ( $attachments ) { foreach ( $attachments as $attachment ) { echo ‘<li> <a href=”‘. get_permalink($attachment->ID) .'” title=”Permanent Link to<?php the_title_attribute(); ?>”>’; echo wp_get_attachment_image( $attachment->ID, ‘full’ ); echo … Read more