Weird html output of single_cat_title – is not inside of the html element?
By default single_cat_title(), a wrapper for single_term_title(), outputs the category name. Try replacing that call with single_cat_title(”,false).
By default single_cat_title(), a wrapper for single_term_title(), outputs the category name. Try replacing that call with single_cat_title(”,false).
The RSS feed is “updated” every time you post something new. If you want it to always be updated at 12pm then schedule your posts to always be published at 12pm.
If you do this on archive pages you will get a lot of duplication You can have trouble if one of those elements alters or overwrites $wp_query or $post or any number of other things Keep your page structure clean and logical. What you are asking is something like “Is there any problem with putting … Read more
On the most basic level, you could prevent all posts from being displayed by simply ripping the Loop out of the template that is displaying your “landing page.” If you only wish to modify the posts being displayed on your “landing page,” (say for instance should you be using WordPress post object as songs and … Read more
Checkboxes only send data when checked. When unchecked, there is no post (or get) data. You need to check if set using isset() if (isset($_POST[‘custom_settings’][‘checked’])) { /* it was ticked */ }
Add the following code to your template’s search.php – somewhere before the loop: <?php global $wp_query; echo ‘Your results retrive (‘.$wp_query->found_posts.’ posts) with the subject ‘.get_search_query().’.’; ?> If search.php does not exists in your template’s directory, either copy archive.php (if it does not exists too, copy index.php – see template hierarchy) and rename it to … Read more
Refer to the Template Hierarchy Codex entry. The template hierarchy for the blog posts index is as follows: home.php index.php There is no case where the blog posts index will use a page template, either the default page template or a custom page template. The determination is controlled by wp-includes\template-loader.php. Refer to Line 31: elseif … Read more
Your method is complex… Here is simplest function to add BUTTON in TinyMCE: (insert this code in funcitons.php): add_action(‘admin_init’, function() { if (current_user_can(‘edit_posts’) && get_user_option(‘rich_editing’) == ‘true’) { add_filter(‘mce_buttons_2’, ‘register_buttonfirst’); add_filter(‘mce_external_plugins’, ‘add_pluginfirst’); } }); function register_buttonfirst($buttons) { array_push($buttons, “|”, “shortcode_button1” ); return $buttons;} function add_pluginfirst($plugin_array) {$plugin_array[‘MyPuginButtonTag’] = plugin_dir_url( __FILE__ ).’My_js_folder/1_button.php’;return $plugin_array;} add_filter( ‘tiny_mce_version’, ‘my_refresh_mceeee1’); function … Read more
You’ll likely need to your the $wpdb object. Learn about it on the WordPress Codex. Check out the Custom Database Tables series on WPTuts+ as well. Lots of really good information about when to use custom database tables, and how to access them efficiently, securely and with WordPress best practices. The series should teach you … Read more
You’re getting this because you’re running PHP 5.2 on your server. The plugin requires PHP 5.3. If it did not do this check, you would get an error when it tried to use a PHP 5.3 feature. I won’t recommend a plugin as that would be offtopic and result in the question being closed ( … Read more