Posts are being redirected to xampp home page

I have a wordpress site, I downloaded it from live and configured it on local using xampp. When i click on any post, it redirects me to localhost/xampp instead of post page my .htaccess is like <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # BEGIN W3TC … Read more

Enable commenting on front-end preview page for pending posts

We are in the process of allowing authors to collaboratively be a part of the editorial process. They will have access to all pending posts’ preview pages (not post-edit pages). I want to allow these users to post a normal comment whenever the post is in pending post_status. Upon research, a comprehensive solution has been … Read more

How to create A-Z index listing for custom post types?

I want to create an A to Z index listing of all posts from a specific custom post type. This is the code so far: <?php /** * The Template for displaying archive series. * * Theme: Default */ get_header(); ?> <div id=”content”> <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args = array(‘paged’ => … Read more

Styling images coming from another blog

I had asked a question earlier, on getting post-thumbnails from another WP-site. There, the awesome Mike coded a SQL query whose results are then passes on to a PHP array. The piece of code from that answer that I want to modify is this. $post_urls = $wpdb->get_col($sql); if (is_array($post_urls)) echo implode(“\n”,$post_urls); Now the array holds … Read more

Query posts without a specific ID

How would we query posts as long as the post does not equal the ID 2047? Here is the current query. <?php $args1 = array( ‘post_type’ => ‘options’, ‘tag_slug__and’ => array( $triplevel, $divingtrip, ‘accommodation’ ), ‘posts_per_page’ => -1, ‘offset’ => 1, ); query_posts( $args1 ); while (have_posts()) : the_post(); ?> I tried this… query_posts( $args1 … Read more