Skip to main content

Home/ Wordpress/ Group items tagged query

Rss Feed Group items tagged

Luciano Ferrer

PHP Code To Exclude a Category From a WordPress Page - 1 views

  •  
    "function exclude_category($query) { if ( $query->is_home() ) { $query->set('cat', '-xx'); } return $query; } add_filter('pre_get_posts', 'exclude_category');"
Peter Nilsson

Making the Correct Use of Media Queries in a Responsive WordPress Site - 0 views

  •  
    In this tutorial, we´ll be talking about the process of using media queries in a responsive design. But, let us first have an introduction to media queries.
Alex Sysoef

How To Clean WP Options - Slow MySQL Queries | Revellian Dot Com - 0 views

  •  
    When your self hosted wordpress site is getting slow, or lots of cpu quota exceeded errors, how do you fix it? One place you need to look is in your main directory (using c-panel's file manager) - find a file called tmp. Inside it, you'll see several folders, one of them is "slow mysql queries". I used cheap shared hosting like most people (blue host, host gator, etc.). Because of that, you will experience problems - especially if you start getting a lot of traffic. What I'm meaning is 500+ individual visitors per day.
anonymous

Debug Queries - 0 views

  •  
    List query-actions only for admins; for debug purposes
Vernon Fowler

Post Types « WordPress Codex - 1 views

  • it is better if you prefix your identifier with a short namespace that identifies your plugin, theme or website that implements the custom post type. For example: acme_product or aw_product for products post type used by a hypothetical ACMEWidgets.com website
  • Namespacing your custom post type identifier will not guarantee against conflicts but will certainly minimize their likelihood.
  • Do pay close attention to not having your custom post type identifier exceed 20 characters though, as the post_type column in the database is currently a VARCHAR field of that length.
  • ...6 more annotations...
  • register_post_type( 'acme_product', array( 'labels' => array( 'name' => __( 'Products' ), 'singular_name' => __( 'Product' ) ), 'public' => true, 'has_archive' => true, ) );
  • When you namespace a custom post type identifier and still want to use a clean URL structure, you need to set the rewrite argument of the register_post_type() function. For example, assuming the ACME Widgets example from above:
  • 'rewrite' => array('slug' => 'products'),
  • Note: In some cases, the permalink structure must be updated in order for the new template files to be accessed when viewing posts of a custom post type.
  • single posts of a custom post type will use single-{post_type}.php and their archives will use archive-{post_type}.php where {post_type} is the $post_type argument of the register_post_type() function.
  • In any template file of the WordPress theme system, you can also create new queries to display posts from a specific post type. This is done via the post_type argument of the WP_Query object.
Vernon Fowler

WordPress › Support » Query post to show one post per author ? - 0 views

  • the simplest solution without using plugin and other custom loops. In case someone is interested, see the instruction here: http://www.dbuggr.com/smallwei/show-latest-post-author-wordpress-front-page/
netgains

3D Floor Plan Rendering Service Company - 1 views

  •  
    3D visualization gives you realistic preview of your future project(s) whether you are going to plan your office, home or you need a specific 3D view for your near future project.If you have any queries regarding floor plan design services or you want send your projects need, visit us at http://www.netgains.org/cad-services-india/ or you can drop an email at biz@netgains.org.
  •  
    3D visualization gives you realistic preview of your future project(s) whether you are going to plan your office, home or you need a specific 3D view for your near future project.If you have any queries regarding floor plan design services or you want send your projects need, visit us at http://www.netgains.org/cad-services-india/ or you can drop an email at biz@netgains.org.
anonymous

Website Design - 0 views

  •  
    Fulfill your web-based requirements with goal-oriented services from a reputed website design company, India. Avail complete support and quick responses to queries and quality services at affordable rates.
anonymous

Blog Customization - Not Just Design, but Content! - 0 views

  •  
    To develop a successful blog, you need to pay attention to the content and preferences of your target customers. Answer their queries and convince them that you are serious about offering quality products to them.
Luciano Ferrer

How To Query Multiple Custom Post Types with query_posts [WordPress Tip] | Peter R Knight - 2 views

  •  
    " query_posts('post_type[]=post&post_type[]=page&post_type[]=event'); + http://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts "
Luciano Ferrer

WordPress › Archivist - Custom Archive Templates « WordPress Plugins - 2 views

  •  
    "Shortcode Plugin to display an archive by category, tag or custom query. Customizable via HTML templates. "
Vernon Fowler

Conditional Tags « WordPress Codex - 0 views

  • The Conditional Tags can be used in your Template files to change what content is displayed and how that content is displayed on a particular page depending on what conditions that page matches. For example, you might want to display a snippet of text above the series of posts, but only on the main page of your blog. With the is_home() Conditional Tag, that task is made easy.
  • is_single()  When any single Post (or attachment, or custom Post Type) page is being displayed. (False for Pages)
  •  
    Great for use with the Widget Logic plugin. A reference for all the conditional tags that help you restrict a widgets viewing.
  •  
    Warning: You can only use conditional query tags on or after the init action hook in WordPress. For themes, this means the conditional tag will never work properly if you are using it in the body of functions.php, i.e. outside of a function.
anonymous

WP Widget Cache - 0 views

  •  
    Cache the output of your blog widgets. Usually it will significantly reduce the SQL queries to your database and speed up your site.
Luciano Ferrer

WordPress › WP-Optimize « WordPress Plugins - 0 views

  •  
    "Simple but effective plugin allows you to extensively clean up your WordPress database and optimize it without doing manual queries. WP-Optimize is an extensive WordPress database cleanup and optimization tool. It doesn't require PhpMyAdmin to clean and optimize your database tables."
Luciano Ferrer

WordPress › WP-Optimize « WordPress Plugins - 0 views

  •  
    "Simple but effective plugin allows you to extensively clean up your WordPress database and optimize it without doing manual queries. WP-Optimize is an extensive WordPress database cleanup and optimization tool. It doesn't require PhpMyAdmin to clean and optimize your database tables."
jpollockgc

Custom Query Shortcode: Run a Loop inside Any Post/Page | Digging into WordPress - 0 views

  •  
    Custom loops via shortcode.
Saurabh Mehta

Popular Wordpress Plugins 2015 - 0 views

  •  
    Download useful wordpress plugins for free developed by professional wordpress developers from Solwin Infotech. We have great support team for all your queries.
ganesh473

GoDaddy website builder - Fgrade | GoDaddy Authorised Reseller - 0 views

  •  
    GoDaddy website builder are providing Content management system (CMS) for building website . It is easy making of a business website with that we can provide services to the customers very effectively.our plans include the website building for personal, business and professional websites, difference is traffic and lot of benefits by GoDaddy website builder.For any queries feel free to contact us.Our contact number: 1800-1210120 or email to: ganesh@fgrade.net
1 - 20 of 25 Next ›
Showing 20 items per page