Page not found when trying to link to files in child theme directory

Shouldn’t you be enqueuing that in functions.php instead? function script_enqueueing() { wp_enqueue_script( ‘scripts’, get_stylesheet_directory_uri() . ‘/js/scripts.js’, array(‘jquery’) ); } add_action(‘wp_enqueue_scripts’, ‘script_enqueueing’); Edit to add: if calling directly in header.php, use get_template_directory_uri(); instead.

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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)