posts_nav_link() not working on index.php

You are missing the paged= paramter. $myquery = new wp_query(‘cat=-41&paged=’ . get_query_var( ‘page’ )); Codex Note – You should set get_query_var( ‘page’ ) if you want your query to work with pagination. Tip – If you want to eclude a category from main page you can use the pre_get_post filter. That is better way to … Read more

Shortcode attribute “title” doesn’t appear in $atts array

It appears that you are not extracting your $atts correctly or at all for that matter. Use the correct procedure to get access to the passed attributes allong with setting up defaults as a fallback: extract( shortcode_atts( array( ‘shortcode’ => ‘default_value’, ‘title’ => ‘Default Title’, ), $atts ) ); There is infact an extensive guideline … Read more

Adding a wp_head hook from an included PHP file

To enqueue styles and scripts properly, use the wp_enqueue_scripts action like so: function wpa_63708_enqueue_scripts() { wp_register_script( ‘my-script’,’/path/to/script’ ); wp_enqueue_script( ‘my-script’ ); } add_action( ‘wp_enqueue_scripts’, ‘wpa_63708_enqueue_scripts’ );

Specific php document for a page

I think you are looking for ‘page templates’. Try out the codex: Page Templates Page templates allow you to completely change the look of separate pages on your website and still allow dynamic content to be updated by WordPress.

Filter to strip unnecessary attributes

To make it more clear: (From the comments on the question) Q: The “output” or “HTML” of which function exactly? A: Any. I’d like these attributes removed from my whole theme. WP & Functions: WordPress has around 2.5k functions with the current version 3.4.2. Now imagine, that we would (or even could) check each function … Read more