List all WordPress key words

You can load your own .php files outside WordPress but you do not have WordPress’ rewrite magic to support you. If you want to load the file from http://bhaa.ie/realex-ipn.php that file will have to be at the root of your installation– same directory as license.txt. If your file is in your theme you have to … Read more

New install of wordpress, my url goes to index of/

You might need to create .htaccess file inside your site’s home directory(like : /public_html) Here is the sample : # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress And also check your files permission. See Details : … Read more

Multiple 404.php templates based on a post_type

It is possible but wordpress doesn’t have any helpful constructs to help with that. The best approach is to modify your 404.php. Most of the information that you need should be in the main WP_query object and you should be able to do something like if (is_singular(‘post_tyoe_a’)) { …. } else { …. } this … Read more

No 404 page available

There is 404.php in the theme uploaded. But when there is search for non-existent page. The 404.php does not show up. When there is search for non-existent page doesn’t produce the 404 page, but simply shows the search.php‘s else portion. A simple search.php is like: <?php if( have_posts() ) : ?> <?php while( have_posts() : … Read more

Link to WP-CONTENT not working

I have experience with this issue and find solution maybe work with your problem Check Wp-Content Permission change to 775 Delete or rename your .htaccess like .bkphtaccess Setting permalinks as default and save Turn back permalinks as your custom permalink and save If allowed new .htaccess will create automatic, if not copy text at the … Read more

How do I redirect a permalink for a Draft post to a custom 404 page?

Here is what I came up with. Seems to be working. If anyone has suggestions for improvement, I’m all ears: // Redirect links to future posts to Coming Soon page. add_action(‘wp’,’redirect_coming_soon_posts’, 0); function redirect_coming_soon_posts(){ global $wpdb; if ($wpdb->last_result[0]->post_status == “future” && $wpdb->last_result[0]->post_date_gmt != ‘0000-00-00 00:00:00’ && ! is_admin() ): session_start(); $_SESSION[‘next_post_id’] = $wpdb->last_result[0]->ID; wp_redirect( ‘/coming-soon’, … Read more