Author: Support Admin

Get A List Of All Custom Page Templates in WordPress
[ad_1] Pages are one of WordPress’s built-in Post Types. You’ll probably want most of your website Pages to look about the same. But sometimes, though, you may need a specific Page, or a group of Pages, to display or behave differently. This is easily accomplished with custom Page Templates. WordPress allows you to create custom…

https://millionclues.com/wordpress-tips/adding-safari-only-css/
[ad_1] https://millionclues.com/wordpress-tips/adding-safari-only-css/ [ad_2]

Modify WordPress Main Query – The Right Way
[ad_1] By OutsourcedContent — on December 9, 2017 /** * Modify WordPress Main Query – The Right Way * * @refer https://millionclues.com/wordpress-tips/modify-wordpress-main-query/ */ function modify_wp_main_query_done_right( $query ) { if ( $query->is_main_query() ) { $query->query_vars[‘meta_key’] = ‘statusverified_13141’; $query->query_vars[‘meta_value’] = 1; } } add_action( ‘pre_get_posts’, ‘modify_wp_main_query_done_right’ ); Refer WP Query to discover other query_vars [ad_2]

Force Sub Categories To Use Parent Category Templates
[ad_1] When a viewer clicks on a link to one of the Categories on your WordPress site, he or she is taken to a page listing the Posts in that particular Category in chronological order. WordPress uses `category.php` template as a default layout to display all category listing pages. But you also have option to…

Fix WordPress Navigation -Same Posts On All Pages Problem
[ad_1] Divi is a WordPress theme that web designers do not want you to know. It comes with a drag-and-drop theme builder. You can build beautiful looking unique websites without touching a line of code. Just choose from one of the many pre-made layouts, or pick elements and arrange them any way you like. Divi…

Archive Page For Custom Taxonomy
[ad_1] By OutsourcedContent — on December 9, 2017 Here is the Query. Highlighted content will have to be changed for your case. <?php $my_query = new WP_Query( array( ‘post_type’ => ‘company’, ‘tax_query’ => array( array( ‘taxonomy’ => ‘service’, ‘field’ => ‘slug’, ‘terms’ => get_query_var( ‘service’ ), ), ), ‘paged’ => get_query_var(‘paged’, 1), ) );…

Remove Version Query String From Static JS And CSS Files
[ad_1] A website owner should always be trying to improve the speed of their website as much as possible. When you analyze your page using any page speed analyzer such as Page Speed, YSlow or Pingdom, you are very likely to see suggestions to remove query strings from static resources, such as Stylesheets and JavaScript…

Sort WordPress Posts With Multiple Criteria
[ad_1] By OutsourcedContent — on December 10, 2017 This was a case on a project where a custom listing post type had post meta that specified if it was as platinum sponsor, or a gold sponsor or a verified profile. The job was to list the platinum sponsors at the top on the archive page,…

Easy Tabbed Navigation With jQuery
[ad_1] By OutsourcedContent — on December 10, 2017 Here is the HTML Markup <h4 class=”single-company-tab-wrapper hide-if-no-js”> <a class=”single-company-tabs” href=”#info”>Info</a> <a class=”single-company-tabs” href=”#contact”>Contact</a> </h4> <div id=”info” class=”tab-content”> <p>Content of info tab</p> </div> <div id=”contact” class=”tab-content”> <p>Content of contact tab</p> </div> And here is the jQuery jQuery( document ).ready( function($){ $(‘.tab-content’).hide(); // Hide all tabs…

Add Custom Image Sizes Into WordPress Media Library
[ad_1] In a previous article we have posted about how you can define new custom image sizes to use on your WordPress theme and how to remove default image sizes. You can define and add custom image sizes with the help of add_image_size() function in WordPress. In this article we will show you how you…