<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dev4Press&#187; hook Tag Archives, page 1 of 1 | Dev4Press</title>
	<atom:link href="http://www.dev4press.com/tag/hook/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dev4press.com</link>
	<description>Premium Plugins and Themes for WordPress</description>
	<lastBuildDate>Tue, 21 May 2013 19:59:10 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>GD bbPress Toolbox Pro 1.2.2</title>
		<link>http://www.dev4press.com/2012/blog/plugins-news/gd-bbpress-toolbox-pro-1-2-2/</link>
		<comments>http://www.dev4press.com/2012/blog/plugins-news/gd-bbpress-toolbox-pro-1-2-2/#comments</comments>
		<pubDate>Fri, 02 Nov 2012 17:50:51 +0000</pubDate>
		<dc:creator>MillaN</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[attachments modules]]></category>
		<category><![CDATA[bug fixes]]></category>
		<category><![CDATA[enhance]]></category>
		<category><![CDATA[hook]]></category>
		<category><![CDATA[lead topic]]></category>
		<category><![CDATA[loading]]></category>
		<category><![CDATA[Module]]></category>
		<category><![CDATA[new feature]]></category>
		<category><![CDATA[new option]]></category>
		<category><![CDATA[page header]]></category>
		<category><![CDATA[proper detection]]></category>
		<category><![CDATA[quote]]></category>
		<category><![CDATA[signature]]></category>
		<category><![CDATA[topic thread]]></category>

		<guid isPermaLink="false">http://www.dev4press.com/?p=18750</guid>
		<description><![CDATA[New version of GD bbPress Toolbox Pro, brings another batch of fixes (to signature, quote and attachments) and improvements (adding hooks mostly), new translations and some new features (enhancing bbPress module with one new option: always display lead topic).]]></description>
				<content:encoded><![CDATA[<p>New version of GD bbPress Toolbox Pro, brings another batch of fixes (to signature, quote and attachments) and improvements (adding hooks mostly), new translations and some new features (enhancing bbPress module with one new option: always display lead topic).</p>
<p>Settings panel got another new Feature group: Enhance bbPress. Right now, there is only one option, to enable display of lead topic in the topic thread. More options to come. German and Serbian translations are added. But most important set of changes deal with the way content hooks are added by quotes, signatures and attachments modules. New method adds hooks to modify content only when page header starts and this should eliminate any problems some of these hooks can cause (for instance, BuddyPress Activity Stream where signature can end up in the content).</p>
<p>Several important bugs are fixed: proper detection for the topic/reply when adding signature, signature and quote were not working with lead topic enabled, quote link was not displayed in some cases and attachments content modification was using actions instead of filters.</p>
<p>If you have any issues with the plugin, please report them in the forum.<div class="xss-infobox xss-infobox-color-green"><h3>Official Website</h3>
<p>GD bbPress Toolbox Pro has own website:</p>
<p>Home: <a href="http://www.gdbbpbox.com/" target="_blank">www.gdbbpbox.com</a></div></p>
<script src="http://feeds.feedburner.com/~s/adsense@gdragon.info?i=http://www.dev4press.com/2012/blog/plugins-news/gd-bbpress-toolbox-pro-1-2-2/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://www.dev4press.com/2012/blog/plugins-news/gd-bbpress-toolbox-pro-1-2-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Expand WP Query: Taxonomies Terms</title>
		<link>http://www.dev4press.com/2012/tutorials/wordpress/practical/expand-wp-query-taxonomies-terms/</link>
		<comments>http://www.dev4press.com/2012/tutorials/wordpress/practical/expand-wp-query-taxonomies-terms/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 20:00:25 +0000</pubDate>
		<dc:creator>MillaN</dc:creator>
				<category><![CDATA[Practical]]></category>
		<category><![CDATA[archives]]></category>
		<category><![CDATA[comma]]></category>
		<category><![CDATA[custom taxonomies]]></category>
		<category><![CDATA[field parameter]]></category>
		<category><![CDATA[hierarchical taxonomies]]></category>
		<category><![CDATA[hook]]></category>
		<category><![CDATA[multiple taxonomies]]></category>
		<category><![CDATA[multiple terms]]></category>
		<category><![CDATA[operator]]></category>
		<category><![CDATA[post type]]></category>
		<category><![CDATA[query arguments]]></category>
		<category><![CDATA[query variables]]></category>
		<category><![CDATA[taxonomies]]></category>
		<category><![CDATA[taxonomies terms]]></category>
		<category><![CDATA[tax_query object]]></category>
		<category><![CDATA[URL Query]]></category>

		<guid isPermaLink="false">http://www.dev4press.com/?p=15602</guid>
		<description><![CDATA[WordPress Query object is very powerful, and it allows you to filter posts with all sorts of criteria. One of the most important filters are taxonomy terms. You can filter using one or more taxonomies and one or more terms for each taxonomy. This tutorial will show you how.]]></description>
				<content:encoded><![CDATA[<p>WordPress Query object is very powerful, and it allows you to filter posts with all sorts of criteria. One of the most important filters are taxonomy terms. You can filter using one or more taxonomies and one or more terms for each taxonomy. This tutorial will show you how.</p>
<p>Taxonomies terms filtering can be done only for taxonomies that are registered as public, and have set query variable. Query variable is the same as taxonomy name by default, but it can be registered to be anything as long as it is clean and URL safe (query variables are used in URL, so they can&#8217;t contain empty spaces or special characters). For instance, default WP taxonomies &#8211; category and post tags have query variables - category_name and tag.</p>
<h3>URL Query</h3>
<p>Taxonomies query variables can be used in URL like this:</p>
<pre class="brush: php; title: ; notranslate">// archive for category with name 'news' //

http://www.example.com/?category_name=news

// archive for category with name 'news' and post tag with name 'latest' //

http://www.example.com/?category_name=news&#038;tag=latest</pre>
<p>You can use more taxonomies in the URL like this, and you can even specify multiple terms separated by comma. But, the more terms you try to filter, number of posts will be smaller, and if you specify filter that gives no results, you will be redirected to 404 page (or to empty archive with no posts message).</p>
<h3>Override the WP Query</h3>
<p>It is useful to be able to override already prepared query and add filters for terms. This way you can modify query for archives by adding additional conditions. To do this, you need to use &#8216;pre_get_posts&#8217; action, and to modify query arguments with function attached to that hook. Here is the example.</p>
<pre class="brush: php; title: ; notranslate">add_action('pre_get_posts', 'example_pre_get_posts_simple'));
function example_pre_get_posts_simple($query) {
  $query-&gt;set('tag', 'latest,wordpress,video');
  $query-&gt;set('category_name', 'news');
}</pre>
<p>This example will expand query with filters for 3 terms belonging to post tags (comma separated strings: latest, wordpress and video) and one term belonging to category. Based on this Query class will generate tax_query object that contains elements that will be used to filter posts by taxonomies you have set and taxonomies that were already in the Query object before you hooked into it with <strong>pre_get_posts</strong> action. You can even modify tax_query with this hook, but that is not recommended because parsing taxonomies will be done once again after pre_get_posts. Still, it can be done, but you need to make sure you preserve old tax_query variable before adding your own. Tax_query elements are much more complicated than the example above, and you can specify relations for the terms and you can specify terms with ID&#8217;s or name, not only slug. Third method bellow shows how to get posts using custom tax_query array.</p>
<h3>Using get_posts function</h3>
<p>This function has many different ways to filter using terms. Function get_posts has an array of arguments, and there is a long list of parameters you can use with it, so you can specify posts count, post type, tags, categories, post ID&#8217;s and much more. First few examples are simple ways to specify terms:</p>
<pre class="brush: php; title: ; notranslate">//use category ID:
$posts = get_posts(array('category' =&gt; 1));

//use category slug with category query variable:
$posts = get_posts(array('category_name' =&gt; 'news'));

//use category slug and post tags slugs for 3 terms:
$posts = get_posts(array('category_name' =&gt; 'news', 'tag' =&gt; 'latest,wordpress,video'));</pre>
<p>You can add more things here including custom taxonomies, using query variables for those custom taxonomies. Full list of parameters you can use can be found here: <a href="http://codex.wordpress.org/Class_Reference/WP_Query#Parameters" target="_blank">WP Query Parameters</a>.</p>
<p>Another thing you can do is to specify terms using tax_query array. This allows more flexibility in specifying terms. Tax query is actually array of arrays. Each array is to specify the taxonomy terms and it is in form of array that has few parameters of its own. Each tax_query array can have 5 parameters:</p>
<ul>
<li>taxonomy: name of the taxonomy, actual name, not query variable</li>
<li>field: it can be slug or ID, and it is used to define what is used to specify terms</li>
<li>terms: single ID or slug, or array with slugs or ID&#8217;s based on field parameter</li>
<li>include_children: should the children of terms be included, only for hierarchical taxonomies, and by default is set to true</li>
<li>operator: what operator to use in SQL query to link the specified terms: &#8216;IN&#8217;, &#8216;NOT IN&#8217;, &#8216;AND&#8217;</li>
</ul>
<p>So, here is the example with two taxonomies:</p>
<pre class="brush: php; title: ; notranslate">$args = array(
  'tax_query' =&gt; array(
    array(
      'taxonomy' =&gt; 'post_tag',
      'field' =&gt; 'slug',
      'terms' =&gt; 'latest,wordpress,video'
    ),
    array(
     'taxonomy' =&gt; 'category',
     'field' =&gt; 'id',
     'terms' =&gt; 1
    )
  )
);
$posts = get_posts($args);</pre>
<p>This will filter posts using 3 terms for post tags, specified by slugs, and by one category specified by ID.</p>
<p>There are a lot of possibilities to filter posts by multiple taxonomies and multiple terms. You need to choose method which works best for you, depending on what you need to do and how to filter posts, and be careful with listing multiple terms: more terms in the filter, the less posts you will get, or you will get no posts due to number of filter rules, and you can get to 404 page with no results.</p>
<script src="http://feeds.feedburner.com/~s/adsense@gdragon.info?i=http://www.dev4press.com/2012/tutorials/wordpress/practical/expand-wp-query-taxonomies-terms/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://www.dev4press.com/2012/tutorials/wordpress/practical/expand-wp-query-taxonomies-terms/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>GD Press Tools 3.8.3 Pro</title>
		<link>http://www.dev4press.com/2010/blog/plugins-news/gd-press-tools-3-8-3-pro/</link>
		<comments>http://www.dev4press.com/2010/blog/plugins-news/gd-press-tools-3-8-3-pro/#comments</comments>
		<pubDate>Fri, 29 Oct 2010 08:53:23 +0000</pubDate>
		<dc:creator>MillaN</dc:creator>
				<category><![CDATA[Plugins]]></category>
		<category><![CDATA[cron jobs]]></category>
		<category><![CDATA[functionalities]]></category>
		<category><![CDATA[hook]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[minor maintenance release]]></category>
		<category><![CDATA[party plugin]]></category>
		<category><![CDATA[periods]]></category>
		<category><![CDATA[press tools]]></category>
		<category><![CDATA[third party]]></category>
		<category><![CDATA[tools maintenance]]></category>

		<guid isPermaLink="false">http://www.dev4press.com/?p=3584</guid>
		<description><![CDATA[Minor maintenance release of GD Press Tools Pro is released, focusing on problems with Cron functionalities built in the plugin. This 3.8.3 version includes couple of very important fixes and some a new function that is already in use from the plugins Cron panel.]]></description>
				<content:encoded><![CDATA[<p>Minor maintenance release of GD Press Tools Pro is released, focusing on problems with Cron functionalities built in the plugin. This 3.8.3 version includes couple of very important fixes and some a new function that is already in use from the plugins Cron panel.</p>
<p>Registering new cron periods is fixed. There was an issue that was causing GD Press Tools to remove periods not defined by the plugin, or WP, so third party plugin couldn&#8217;t register own periods. There were also few other minor issues with Cron panel, that are also taken care of now.</p>
<p>Default plugin cron periods are expanded with &#8216;Every Two Days&#8217; period. A new function is added for removing all cron jobs for a set hook/action regardless of time or arguments used to add cron job for that hook. Same function is used from Cron panel to clear that hook from the list. Previously available Unschedule options is still there and it&#8217;s using time and arguments for specific use of hook to be removed.</p>
<blockquote><p>More on GD Press Tools Pro:<strong> <a href="http://dv4p.com/gdpt">http://dv4p.com/gdpt</a></strong></p></blockquote>
<script src="http://feeds.feedburner.com/~s/adsense@gdragon.info?i=http://www.dev4press.com/2010/blog/plugins-news/gd-press-tools-3-8-3-pro/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://www.dev4press.com/2010/blog/plugins-news/gd-press-tools-3-8-3-pro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk: enhanced
Content Delivery Network via cdn.dev4press.com

 Served from: www.dev4press.com @ 2013-05-22 06:33:38 by W3 Total Cache -->