<?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>WP Engineer &#187; WordPress News</title> <atom:link href="http://wpengineer.com/category/wordpress-news/feed/" rel="self" type="application/rss+xml" /><link>http://wpengineer.com</link> <description>WordPress News, Hacks, Tipps, Tutorials, Plugins and Themes</description> <lastBuildDate>Wed, 28 Jul 2010 13:37:05 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3394</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Custom Post Type and Permalink</title><link>http://wpengineer.com/custom-post-type-and-permalink/</link> <comments>http://wpengineer.com/custom-post-type-and-permalink/#comments</comments> <pubDate>Wed, 28 Jul 2010 13:37:05 +0000</pubDate> <dc:creator>Frank</dc:creator> <category><![CDATA[WordPress News]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Plugin]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WP]]></category> <category><![CDATA[WP3.0]]></category><guid
isPermaLink="false">http://wpengineer.com/?p=2044</guid> <description><![CDATA[Since WordPress 3.0 you can use Custom Post Types and you can define your own types of content - it's more like pages than posts! Thereby you can use automatically the Permalink structure of your WordPress installation. That means, if you create a new post type, you can use Permalinks. But the Permalinks only work [...]]]></description> <content:encoded><![CDATA[<p>Since WordPress 3.0 you can use <a
href="http://wpengineer.com/impressions-of-custom-post-type/" class="liinternal">Custom Post Types</a> and you can define your own types of content - it's more like pages than posts! Thereby you can use automatically the Permalink structure of your WordPress installation. That means, if you create a new post type, you can use Permalinks.</p><p>But the Permalinks only work if you recreate the Rewrite Rules of WordPress - that's why many users initially have problems with it. If you create a new post type you probably get a 404 if you open this page because WordPress doesn't know the URL-structure in your Permalinks since you didn't create the Rewrite Rules again.</p><p>The easiest way is to safe the Permalink structure in your settings again. Alternatively you can include in your Plugin or Theme the function <code>flush_rewrite_rules()</code>. This enables to create the Rewrite Rules again.<br
/><hr
/><h3>Related posts:</h3><ul><li><a
href="http://wpengineer.com/impressions-of-custom-post-type/" rel="bookmark" title="Permanent Link: First Impressions of Custom Post Type" class="liinternal">First Impressions of Custom Post Type</a></li><li><a
href="http://wpengineer.com/custom-fields-in-your-feed/" rel="bookmark" title="Permanent Link: Custom Fields in your Feed" class="liinternal">Custom Fields in your Feed</a></li><li><a
href="http://wpengineer.com/wordpress-3-0-custom-background-support/" rel="bookmark" title="Permanent Link: WordPress 3.0 Custom Background Support" class="liinternal">WordPress 3.0 Custom Background Support</a></li><li><a
href="http://wpengineer.com/sort-posts-custom-fields/" rel="bookmark" title="Permanent Link: Sort Posts With The Help Of Custom Fields" class="liinternal">Sort Posts With The Help Of Custom Fields</a></li><li><a
href="http://wpengineer.com/create-your-own-wordpress-login-design/" rel="bookmark" title="Permanent Link: Create Your Own WordPress Login Design" class="liinternal">Create Your Own WordPress Login Design</a></li></ul><hr
/><p><img
style="float:left;" src="http://wpengineer.com/favicon.ico" alt="WP Engineer Favicon"/> Thanks for subscribing our feed! <a
href="http://buysellads.com/buy/detail/3646/" class="liexternal">Sponsor the WP Engineer Blog</a> and get your brand in front of several hundred users per day!<br
/> &copy; <a
href="http://wpengineer.com/" class="liinternal">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p> ]]></content:encoded> <wfw:commentRss>http://wpengineer.com/custom-post-type-and-permalink/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>WordPress Import Not Include In WP Core</title><link>http://wpengineer.com/wordpress-import-not-include-in-wp-core/</link> <comments>http://wpengineer.com/wordpress-import-not-include-in-wp-core/#comments</comments> <pubDate>Wed, 30 Jun 2010 09:30:34 +0000</pubDate> <dc:creator>Frank</dc:creator> <category><![CDATA[WordPress News]]></category> <category><![CDATA[Code]]></category> <category><![CDATA[development]]></category> <category><![CDATA[Plugin]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress Plugins]]></category> <category><![CDATA[WP]]></category> <category><![CDATA[WP3.0]]></category><guid
isPermaLink="false">http://wpengineer.com/?p=2026</guid> <description><![CDATA[WordPress came with several new or changed features - one feature which changed is the functionality to import content from other systems. WordPress offers under "Tools" to import data of other applications or a XML-file of another WordPress installation. But since WordPress 3.0 you need a Plugin because it is no longer in WordPress core. [...]]]></description> <content:encoded><![CDATA[<p>WordPress came with several new or changed features - one feature which changed is the functionality to import content from other systems.<br
/> <span
id="more-2026"></span><br
/> WordPress offers under "Tools" to import data of other applications or a XML-file of another WordPress installation. But since WordPress 3.0 you need a Plugin because it is no longer in WordPress core. The installation of the Plugin is easy and has the usual steps to activate a Plugin.</p><p><a
href="http://wpengineer.com/blog/wp-content/uploads/wp-importer.png" class="liimagelink"><img
src="http://wpengineer.com/blog/wp-content/uploads/wp-importer-300x112.png" alt="" title="wp-importer" width="300" height="112" class="aligncenter size-medium wp-image-2027" /></a></p><p>This is the first time, that WordPress is going into the direction of using <a
href="http://wpengineer.com/core-plugins/" class="liinternal">Core-Plugins</a>. There are many formats available if you check out the <a
href="http://wordpress.org/extend/plugins/profile/wordpressdotorg" class="liwp">profile of WordPress</a>, and maybe someone can create additional importers for other formats.<br
/><hr
/><h3>Related posts:</h3><ul><li><a
href="http://wpengineer.com/wordpress-27-update-core/" rel="bookmark" title="Permanent Link: WordPress 2.7 Update Core" class="liinternal">WordPress 2.7 Update Core</a></li><li><a
href="http://wpengineer.com/use-wordpress-voting/" rel="bookmark" title="Permanent Link: Use WordPress Voting" class="liinternal">Use WordPress Voting</a></li><li><a
href="http://wpengineer.com/wordpress-28-small-insights/" rel="bookmark" title="Permanent Link: WordPress 2.8 &#8211; Small Insights" class="liinternal">WordPress 2.8 &#8211; Small Insights</a></li><li><a
href="http://wpengineer.com/use-javascript-libraries-in-and-of-wordpress/" rel="bookmark" title="Permanent Link: Use JavaScript Libraries In And Of WordPress">Use JavaScript Libraries In And Of WordPress</a></li><li><a
href="http://wpengineer.com/improve-seo-in-wordpress-with-the-wpseo-wordpress-plugin/" rel="bookmark" title="Permanent Link: Improve SEO In WordPress With The wpSEO WordPress Plugin" class="liinternal">Improve SEO In WordPress With The wpSEO WordPress Plugin</a></li></ul><hr
/><p><img
style="float:left;" src="http://wpengineer.com/favicon.ico" alt="WP Engineer Favicon"/> Thanks for subscribing our feed! <a
href="http://buysellads.com/buy/detail/3646/" class="liexternal">Sponsor the WP Engineer Blog</a> and get your brand in front of several hundred users per day!<br
/> &copy; <a
href="http://wpengineer.com/" class="liinternal">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p> ]]></content:encoded> <wfw:commentRss>http://wpengineer.com/wordpress-import-not-include-in-wp-core/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>WordPress 3.0 Nav Menu UI Update</title><link>http://wpengineer.com/wordpress-3-0-nav-menu-ui-update/</link> <comments>http://wpengineer.com/wordpress-3-0-nav-menu-ui-update/#comments</comments> <pubDate>Tue, 27 Apr 2010 13:24:10 +0000</pubDate> <dc:creator>Michael</dc:creator> <category><![CDATA[WordPress News]]></category> <category><![CDATA[Menu]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WP3.0]]></category><guid
isPermaLink="false">http://wpengineer.com/?p=2016</guid> <description><![CDATA[I just recognized, that the Nav Menu UI of WordPress 3.0 got updated. Here are 2 screenshots from the trunk: Related posts: WordPress 3.0 Menu Update Batch Plugin-Update in WordPress 2.9 New Screenshots Of WordPress 3.0 Add WordPress Dashboard Widgets Top Level Menu In WordPress 2.7 Thanks for subscribing our feed! Sponsor the WP Engineer [...]]]></description> <content:encoded><![CDATA[<p>I just recognized, that the Nav Menu UI of WordPress 3.0  got updated. Here are 2 screenshots from the trunk:</p><p><img
class="aligncenter size-full wp-image-2018" title="WordPress 3.0 Nav Menu UI" src="http://wpengineer.com/blog/wp-content/uploads/wordpress-3.0-menu1.jpg" alt="WordPress 3.0 Nav Menu UI" width="600" height="476" /></p><p><img
class="aligncenter size-full wp-image-2019" title="WordPress 3.0 Nav Menu UI" src="http://wpengineer.com/blog/wp-content/uploads/wordpress-3.0-menu-ui1.jpg" alt="WordPress 3.0 Nav Menu UI" width="600" height="369" /><br
/><hr
/><h3>Related posts:</h3><ul><li><a
href="http://wpengineer.com/wordpress-3-0-menu-update/" rel="bookmark" title="Permanent Link: WordPress 3.0 Menu Update" class="liinternal">WordPress 3.0 Menu Update</a></li><li><a
href="http://wpengineer.com/batch-plugin-update-in-wordpress-2-9/" rel="bookmark" title="Permanent Link: Batch Plugin-Update in WordPress 2.9" class="liinternal">Batch Plugin-Update in WordPress 2.9</a></li><li><a
href="http://wpengineer.com/new-screenshots-of-wordpress-3-0/" rel="bookmark" title="Permanent Link: New Screenshots Of WordPress 3.0" class="liinternal">New Screenshots Of WordPress 3.0</a></li><li><a
href="http://wpengineer.com/add-wordpress-dashboard-widgets/" rel="bookmark" title="Permanent Link: Add WordPress Dashboard Widgets" class="liinternal">Add WordPress Dashboard Widgets</a></li><li><a
href="http://wpengineer.com/top-level-menu-in-wordpress-27/" rel="bookmark" title="Permanent Link: Top Level Menu In WordPress 2.7" class="liinternal">Top Level Menu In WordPress 2.7</a></li></ul><hr
/><p><img
style="float:left;" src="http://wpengineer.com/favicon.ico" alt="WP Engineer Favicon"/> Thanks for subscribing our feed! <a
href="http://buysellads.com/buy/detail/3646/" class="liexternal">Sponsor the WP Engineer Blog</a> and get your brand in front of several hundred users per day!<br
/> &copy; <a
href="http://wpengineer.com/" class="liinternal">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p> ]]></content:encoded> <wfw:commentRss>http://wpengineer.com/wordpress-3-0-nav-menu-ui-update/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> <item><title>WordPress Developer Hint</title><link>http://wpengineer.com/wordpress-developer-hint/</link> <comments>http://wpengineer.com/wordpress-developer-hint/#comments</comments> <pubDate>Tue, 27 Apr 2010 05:55:14 +0000</pubDate> <dc:creator>Frank</dc:creator> <category><![CDATA[WordPress News]]></category> <category><![CDATA[development]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WP3.0]]></category><guid
isPermaLink="false">http://wpengineer.com/?p=2001</guid> <description><![CDATA[With WordPress 3.0 debugging will be easier, whereas one constants gets eliminated and an already existing constant will do their work. For developers the following 3 constants are important and should exist in every wp-config.php of a development system. Please use it with precaution on a live system! Add define('WP_DEBUG', true); to wp-config.php to enable [...]]]></description> <content:encoded><![CDATA[<p>With WordPress 3.0 debugging will be <a
href="http://wpdevel.wordpress.com/2010/02/17/ive-eliminated-style_debug-because-it/" class="liexternal">easier</a>, whereas one constants gets eliminated and an already existing constant will do their work.</p><p>For developers the following 3 constants are important and should exist in every wp-config.php of a development system. Please use it with precaution on a live system!</p><blockquote><p> Add <code>define('WP_DEBUG', true);</code> to wp-config.php to enable<br
/> the reporting of notices during development.</p><p>Add <code>define('WP_DEBUG_DISPLAY', false);</code> to wp-config.php to<br
/> disable the display of errors.</p><p>Add <code>define('WP_DEBUG_LOG', true);</code> to wp-config.php to log<br
/> eerrors to debug.log in the wp-content directory.<br
/> Sets PHP error handling and handles WordPress debug mode.</p></blockquote><p>Recommendation for <code>wp-config.php</code></p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009933; font-style: italic;">/** Debugging WP */</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_DEBUG'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//enable the reporting of notices during development - E_ALL</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_DEBUG_DISPLAY'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//use the globally configured setting for display_errors and not force errors to be displayed</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'WP_DEBUG_LOG'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//error logging to wp-content/debug.log</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'SCRIPT_DEBUG'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//loads the development (non-minified) versions of all scripts and CSS and disables compression and concatenation,</span>
<span style="color: #666666; font-style: italic;">//define('E_DEPRECATED', true); //E_ALL &amp;amp; ~E_DEPRECATED &amp;amp; ~E_STRICT</span></pre></div></div><p>A small syntax with huge impact. I recommend this to everyone who is developing with WordPress, especially with <a
href="http://xdebug.org/" class="liexternal">Xdebug</a> a fantastic help.<br
/><hr
/><h3>Related posts:</h3><ul><li><a
href="http://wpengineer.com/3rd-door-today-the-advice-dont-steal-premium-wordpress-themes/" rel="bookmark" title="Permanent Link: 3rd Door &#8211; Today The Advice: Don&#8217;t Steal Premium WordPress Themes" class="liinternal">3rd Door &#8211; Today The Advice: Don&#8217;t Steal Premium WordPress Themes</a></li><li><a
href="http://wpengineer.com/yaml-31-released/" rel="bookmark" title="Permanent Link: YAML 3.1 Released" class="liinternal">YAML 3.1 Released</a></li><li><a
href="http://wpengineer.com/quick-view-on-wordpress-settings/" rel="bookmark" title="Permanent Link: Quick View on WordPress Settings" class="liinternal">Quick View on WordPress Settings</a></li><li><a
href="http://wpengineer.com/wp_page_menu-in-wordpress-27/" rel="bookmark" title="Permanent Link: wp_page_menu in WordPress 2.7" class="liinternal">wp_page_menu in WordPress 2.7</a></li><li><a
href="http://wpengineer.com/our-wordpress-developer-toolbox/" rel="bookmark" title="Permanent Link: Our WordPress Developer Toolbox" class="liinternal">Our WordPress Developer Toolbox</a></li></ul><hr
/><p><img
style="float:left;" src="http://wpengineer.com/favicon.ico" alt="WP Engineer Favicon"/> Thanks for subscribing our feed! <a
href="http://buysellads.com/buy/detail/3646/" class="liexternal">Sponsor the WP Engineer Blog</a> and get your brand in front of several hundred users per day!<br
/> &copy; <a
href="http://wpengineer.com/" class="liinternal">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p> ]]></content:encoded> <wfw:commentRss>http://wpengineer.com/wordpress-developer-hint/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Shortlinks with WordPress 3.0</title><link>http://wpengineer.com/shortlinks-with-wordpress-3-0/</link> <comments>http://wpengineer.com/shortlinks-with-wordpress-3-0/#comments</comments> <pubDate>Thu, 22 Apr 2010 05:52:10 +0000</pubDate> <dc:creator>Frank</dc:creator> <category><![CDATA[WordPress News]]></category> <category><![CDATA[Code]]></category> <category><![CDATA[development]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[template tag]]></category> <category><![CDATA[Theme]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WP3.0]]></category><guid
isPermaLink="false">http://wpengineer.com/?p=2002</guid> <description><![CDATA[There will be a new function in the coming 3.0 version, which will create a shortlink to a post. At default it will be in the header of your frontend. A shortlink would always be with ?p= syntax and the ID of the post. &#60;link rel='shortlink' href='http://bueltge.de/?p=717' /&#62; To use the shortlink in your theme, [...]]]></description> <content:encoded><![CDATA[<p>There will be a new function in the coming 3.0 version, which will create a shortlink to a post. At default it will be in the header of your frontend.<br
/> <span
id="more-2002"></span><br
/> A shortlink would always be with <code>?p=</code> syntax and the ID of the post.<br
/> <code>&lt;link rel='shortlink' href='http://bueltge.de/?p=717' /&gt;</code></p><p><a
href="http://wpengineer.com/blog/wp-content/uploads/get_shortlink.png" class="liimagelink"><img
src="http://wpengineer.com/blog/wp-content/uploads/get_shortlink-600x283.png" alt="" title="get_shortlink" width="600" height="283" class="aligncenter size-large wp-image-2003" /></a></p><p>To use the shortlink in your theme, you can use a template tag with 4 parameters.</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #339933;">*</span> <span style="color: #339933;">@</span>param string <span style="color: #000088;">$text</span> Optional The <span style="color: #990000;">link</span> text or HTML to be displayed<span style="color: #339933;">.</span>  Defaults to <span style="color: #0000ff;">'This is the short link.'</span>
 <span style="color: #339933;">*</span> <span style="color: #339933;">@</span>param string <span style="color: #000088;">$title</span> Optional The tooltip <span style="color: #b1b100;">for</span> the <span style="color: #990000;">link</span><span style="color: #339933;">.</span>  Must be sanitized<span style="color: #339933;">.</span>  Defaults to the sanitized post title<span style="color: #339933;">.</span>
 <span style="color: #339933;">*</span> <span style="color: #339933;">@</span>param string <span style="color: #000088;">$before</span> Optional HTML to display before the <span style="color: #990000;">link</span><span style="color: #339933;">.</span>
 <span style="color: #339933;">*</span> <span style="color: #339933;">@</span>param string <span style="color: #000088;">$before</span> Optional HTML to display after the <span style="color: #990000;">link</span><span style="color: #339933;">.</span>
 <span style="color: #339933;">*/</span>
the_shortlink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$text</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$before</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #000088;">$after</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span></pre></div></div><p>Here an example how you can use it in your theme:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'the_shortlink'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> the_shortlink<span style="color: #009900;">&#40;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Shortlink'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'kurze URL zu diesem Beitrag nutzen'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' &amp;middot; '</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>The function <code>wp_get_shortlink()</code> is in use in this case. You should use this function if you don't want to have it displayed (<code>echo</code>).</p><p>The link in the head of the frontend is created via a hook and can only get disabled. The integration will be standard in WordPress 3.0:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wp_shortlink_wp_head'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>To deactivate the syntax in the head of your template you can put the following code in your <code>functions.php</code>.</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">remove_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'wp_head'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wp_shortlink_wp_head'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">10</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>If you like to adjust the shortlink to your liking, you can use several filter hooks.<br
/> <code>pre_get_shortlink</code> // Allow plugins to short-circuit this function<br
/> <code>get_shortlink</code> // Filter the output<br
/><hr
/><p><img
style="float:left;" src="http://wpengineer.com/favicon.ico" alt="WP Engineer Favicon"/> Thanks for subscribing our feed! <a
href="http://buysellads.com/buy/detail/3646/" class="liexternal">Sponsor the WP Engineer Blog</a> and get your brand in front of several hundred users per day!<br
/> &copy; <a
href="http://wpengineer.com/" class="liinternal">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p> ]]></content:encoded> <wfw:commentRss>http://wpengineer.com/shortlinks-with-wordpress-3-0/feed/</wfw:commentRss> <slash:comments>16</slash:comments> </item> <item><title>Better Plugin List in WordPress 3.0</title><link>http://wpengineer.com/better-plugin-list-in-wordpress-3-0/</link> <comments>http://wpengineer.com/better-plugin-list-in-wordpress-3-0/#comments</comments> <pubDate>Thu, 15 Apr 2010 17:29:48 +0000</pubDate> <dc:creator>Frank</dc:creator> <category><![CDATA[WordPress News]]></category> <category><![CDATA[backend]]></category> <category><![CDATA[Plugin]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WP]]></category> <category><![CDATA[WP3.0]]></category><guid
isPermaLink="false">http://wpengineer.com/?p=1996</guid> <description><![CDATA[One of the main reason why WordPress is so popular is the amount of available Plugins. Most users using Plugins via the most popular way - in the folder plugins under wp-content, and activate them in the backend of WordPress. For other possibilities of plugin integration WordPress 3.0 try to provide a more user friendly [...]]]></description> <content:encoded><![CDATA[<p>One of the main reason why WordPress is so popular is the amount of available Plugins. Most users using Plugins via the most popular way - in the folder <code>plugins</code> under <code>wp-content</code>, and activate them in the backend of WordPress. For other possibilities of plugin integration WordPress 3.0 try to provide a more user friendly way.<br
/> <span
id="more-1996"></span><br
/> WordPress offers many possibilities to hook into the system, sometime they are better and faster.</p><p>For this reason the admin can find a new tab on the Plugin page "Drop-ins", see screenshot below of the current beta 1.</p><p><a
href="http://wpengineer.com/blog/wp-content/uploads/drop-ins-plugins.png" class="liimagelink"><img
src="http://wpengineer.com/blog/wp-content/uploads/drop-ins-plugins-600x207.png" alt="drop-ins-plugins" title="drop-ins-plugins" width="600" height="207" class="aligncenter size-large wp-image-1997" /></a></p><p>In comparison a screenshot of WordPress 2.9.<br
/> <a
href="http://wpengineer.com/blog/wp-content/uploads/drop-ins-plugins2.png" class="liimagelink"><img
src="http://wpengineer.com/blog/wp-content/uploads/drop-ins-plugins2.png" alt="drop-ins-plugins2" title="drop-ins-plugins2" width="270" height="148" class="size-full wp-image-1998" /></a></p><p>There is also a tab for must-use plugins. Plugins can be stored in a "WordPress MU"-plugins folder.<br
/> <a
href="http://wpengineer.com/blog/wp-content/uploads/drop-ins-plugins3.png" class="liimagelink"><img
src="http://wpengineer.com/blog/wp-content/uploads/drop-ins-plugins3.png" alt="must-use-plugins" title="must-use-plugins" width="584" height="176" class="aligncenter size-full wp-image-2000" /></a></p><hr
/><h3>Related posts:</h3><ul><li><a
href="http://wpengineer.com/wordpress-plugin-compatibility-checker/" rel="bookmark" title="Permanent Link: WordPress Plugin Compatibility Checker" class="liinternal">WordPress Plugin Compatibility Checker</a></li><li><a
href="http://wpengineer.com/we-made-it-on-the-list-of-the-coolest-blog-powered-by-wordpress/" rel="bookmark" title="Permanent Link: We Made It On The List Of The Coolest Blog Powered By WordPress" class="liinternal">We Made It On The List Of The Coolest Blog Powered By WordPress</a></li><li><a
href="http://wpengineer.com/list-all-subcategories/" rel="bookmark" title="Permanent Link: List All Subcategories" class="liinternal">List All Subcategories</a></li><li><a
href="http://wpengineer.com/plugin-review-codestyling-localization/" rel="bookmark" title="Permanent Link: Plugin Review: Codestyling Localization" class="liinternal">Plugin Review: Codestyling Localization</a></li><li><a
href="http://wpengineer.com/set-options-on-activation-themes/" rel="bookmark" title="Permanent Link: Set options on activation Themes" class="liinternal">Set options on activation Themes</a></li></ul><hr
/><p><img
style="float:left;" src="http://wpengineer.com/favicon.ico" alt="WP Engineer Favicon"/> Thanks for subscribing our feed! <a
href="http://buysellads.com/buy/detail/3646/" class="liexternal">Sponsor the WP Engineer Blog</a> and get your brand in front of several hundred users per day!<br
/> &copy; <a
href="http://wpengineer.com/" class="liinternal">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p> ]]></content:encoded> <wfw:commentRss>http://wpengineer.com/better-plugin-list-in-wordpress-3-0/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>WordPress 3.0 Menu Update</title><link>http://wpengineer.com/wordpress-3-0-menu-update/</link> <comments>http://wpengineer.com/wordpress-3-0-menu-update/#comments</comments> <pubDate>Tue, 16 Mar 2010 00:01:15 +0000</pubDate> <dc:creator>Michael</dc:creator> <category><![CDATA[WordPress News]]></category> <category><![CDATA[Menu]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WP3.0]]></category><guid
isPermaLink="false">http://wpengineer.com/?p=1984</guid> <description><![CDATA[The new menus WordPress 3.0 just got an update, provided by Ptah Dunbar. Thanks Ptah, cool work! I checked out the new version. But first a screenshot of the backend: As you can see, you can build your menu from modules. Right now these are pages, posts, custom links, categories, tags and media. You can [...]]]></description> <content:encoded><![CDATA[<p>The new menus WordPress 3.0 just got an update, provided by <a
href="http://ptahdunbar.com/" class="liexternal">Ptah Dunbar</a>. Thanks Ptah, cool work! I checked out the new version. But first a screenshot of the backend:</p><p><img
class="aligncenter size-full wp-image-1986" title="WordPress 3.0 Menu Option Page" src="http://wpengineer.com/blog/wp-content/uploads/wordpress-3-menu-screenshot.jpg" alt="WordPress 3.0 Menu Option Page" width="600" height="522" /></p><p>As you can see, you can build your menu from modules. Right now these are pages, posts, custom links, categories, tags and media. You can sort the entries in your menu via drag &amp; drop. Here an edit menu item screenshot:</p><p><img
class="aligncenter size-full wp-image-1987" title="WordPress 3.0 edit menu item screenshot" src="http://wpengineer.com/blog/wp-content/uploads/edit-menu-item.jpg" alt="WordPress 3.0 edit menu item screenshot" width="336" height="591" /><br
/><hr
/><h3>Related posts:</h3><ul><li><a
href="http://wpengineer.com/wordpress-3-0-nav-menu-ui-update/" rel="bookmark" title="Permanent Link: WordPress 3.0 Nav Menu UI Update" class="liinternal">WordPress 3.0 Nav Menu UI Update</a></li><li><a
href="http://wpengineer.com/batch-plugin-update-in-wordpress-2-9/" rel="bookmark" title="Permanent Link: Batch Plugin-Update in WordPress 2.9" class="liinternal">Batch Plugin-Update in WordPress 2.9</a></li><li><a
href="http://wpengineer.com/new-screenshots-of-wordpress-3-0/" rel="bookmark" title="Permanent Link: New Screenshots Of WordPress 3.0" class="liinternal">New Screenshots Of WordPress 3.0</a></li><li><a
href="http://wpengineer.com/add-wordpress-dashboard-widgets/" rel="bookmark" title="Permanent Link: Add WordPress Dashboard Widgets" class="liinternal">Add WordPress Dashboard Widgets</a></li><li><a
href="http://wpengineer.com/top-level-menu-in-wordpress-27/" rel="bookmark" title="Permanent Link: Top Level Menu In WordPress 2.7" class="liinternal">Top Level Menu In WordPress 2.7</a></li></ul><hr
/><p><img
style="float:left;" src="http://wpengineer.com/favicon.ico" alt="WP Engineer Favicon"/> Thanks for subscribing our feed! <a
href="http://buysellads.com/buy/detail/3646/" class="liexternal">Sponsor the WP Engineer Blog</a> and get your brand in front of several hundred users per day!<br
/> &copy; <a
href="http://wpengineer.com/" class="liinternal">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p> ]]></content:encoded> <wfw:commentRss>http://wpengineer.com/wordpress-3-0-menu-update/feed/</wfw:commentRss> <slash:comments>50</slash:comments> </item> <item><title>New Screenshots Of WordPress 3.0</title><link>http://wpengineer.com/new-screenshots-of-wordpress-3-0/</link> <comments>http://wpengineer.com/new-screenshots-of-wordpress-3-0/#comments</comments> <pubDate>Fri, 26 Feb 2010 16:38:58 +0000</pubDate> <dc:creator>Michael</dc:creator> <category><![CDATA[WordPress News]]></category> <category><![CDATA[Theme]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WP3.0]]></category><guid
isPermaLink="false">http://wpengineer.com/?p=1974</guid> <description><![CDATA[Unfortunately we don't have time right now to write new posts, but at least we want you to show some new screenshots of WordPress 3.0. WordPress 3.0 Background settings Now you have the option to set positon, repeat and attachment. WordPress 3.0 Header Image 8 header images are available in the new theme TwentyTen. WordPress [...]]]></description> <content:encoded><![CDATA[<p>Unfortunately we don't have time right now to write new posts, but at least we want you to show some new screenshots of WordPress 3.0.</p><h3>WordPress 3.0 Background settings</h3><p><img
class="aligncenter size-full wp-image-1976" title="WordPress background settings" src="http://wpengineer.com/blog/wp-content/uploads/wordpress-background-dialog.jpg" alt="WordPress background settings" width="590" height="712" /></p><p>Now you have the option to set positon, repeat and attachment.</p><h3>WordPress 3.0 Header Image</h3><p><img
class="aligncenter size-full wp-image-1977" title="WordPress 3.0 Header Image" src="http://wpengineer.com/blog/wp-content/uploads/wordpress-header-image.jpg" alt="WordPress 3.0 Header Image" width="590" height="456" />8 header images are available in the new theme TwentyTen.</p><h3>WordPress 3.0 Menu Settings</h3><p><img
class="aligncenter size-full wp-image-1978" title="WordPress 3.0 Menu Screenshot" src="http://wpengineer.com/blog/wp-content/uploads/wordpress-menu-screen.jpg" alt="WordPress 3.0 Menu Screenshot" width="590" height="261" /><br
/><hr
/><h3>Related posts:</h3><ul><li><a
href="http://wpengineer.com/new-feature-for-wordpress-2-9-wordpress-image-editor/" rel="bookmark" title="Permanent Link: New Feature for WordPress 2.9 &#8211; WordPress Image Editor" class="liinternal">New Feature for WordPress 2.9 &#8211; WordPress Image Editor</a></li><li><a
href="http://wpengineer.com/wordpress-3-0-nav-menu-ui-update/" rel="bookmark" title="Permanent Link: WordPress 3.0 Nav Menu UI Update" class="liinternal">WordPress 3.0 Nav Menu UI Update</a></li><li><a
href="http://wpengineer.com/wordpress-3-multisite-settings/" rel="bookmark" title="Permanent Link: WordPress 3.0 Multisite Settings" class="liinternal">WordPress 3.0 Multisite Settings</a></li><li><a
href="http://wpengineer.com/comment-pagination-and-reply-depth-in-wordpress-27/" rel="bookmark" title="Permanent Link: Comment Pagination And Reply Depth In WordPress 2.7" class="liinternal">Comment Pagination And Reply Depth In WordPress 2.7</a></li><li><a
href="http://wpengineer.com/hide-the-comment-pagination/" rel="bookmark" title="Permanent Link: Hide The Comment Pagination" class="liinternal">Hide The Comment Pagination</a></li></ul><hr
/><p><img
style="float:left;" src="http://wpengineer.com/favicon.ico" alt="WP Engineer Favicon"/> Thanks for subscribing our feed! <a
href="http://buysellads.com/buy/detail/3646/" class="liexternal">Sponsor the WP Engineer Blog</a> and get your brand in front of several hundred users per day!<br
/> &copy; <a
href="http://wpengineer.com/" class="liinternal">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p> ]]></content:encoded> <wfw:commentRss>http://wpengineer.com/new-screenshots-of-wordpress-3-0/feed/</wfw:commentRss> <slash:comments>18</slash:comments> </item> <item><title>First Impressions of Custom Post Type</title><link>http://wpengineer.com/impressions-of-custom-post-type/</link> <comments>http://wpengineer.com/impressions-of-custom-post-type/#comments</comments> <pubDate>Thu, 11 Feb 2010 07:07:36 +0000</pubDate> <dc:creator>Frank</dc:creator> <category><![CDATA[WordPress News]]></category> <category><![CDATA[Code]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[post]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WordPress Tutorials]]></category> <category><![CDATA[WP3.0]]></category><guid
isPermaLink="false">http://wpengineer.com/?p=1969</guid> <description><![CDATA[One of the new very interesting things in WordPress 3.0 are individual post-types you can implement with little effort. Back then, you had to expand the database and write your own interface for it, now you just have to add a few lines of code - of course this is just the current state, which [...]]]></description> <content:encoded><![CDATA[<p>One of the new very interesting things in WordPress 3.0 are individual post-types you can implement with little effort. Back then, you had to expand the database and write your own interface for it, now you just have to add a few lines of code - of course this is just the current state, which can be change until the final release.</p><p>After <a
href="http://justintadlock.com/archives/2010/02/02/showing-custom-post-types-on-your-home-blog-page" class="liexternal">Justin had been playing with these types</a>, we check out the possibilities of types for "Movies".</p><h4>Simple Solution</h4><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> post_type_movies<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	register_post_type<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'movies'</span><span style="color: #339933;">,</span>
                <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Movies'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'public'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'show_ui'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	register_taxonomy_for_object_type<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post_tag'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'movies'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post_type_movies'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p><img
src="http://wpengineer.com/blog/wp-content/uploads/default-custom-post-type.png" alt="default custom post type" title="default-custom-post-type" width="450" height="373" class="aligncenter size-full wp-image-1970" /></p><h4>More parameters for meta-boxes</h4><p>Of course there are a number of parameters for this function and so the behavior and appearance of the corresponding edit page can be controlled quite easily, a small sample with additional meta boxes:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> post_type_movies<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	register_post_type<span style="color: #009900;">&#40;</span>
                     <span style="color: #0000ff;">'movies'</span><span style="color: #339933;">,</span> 
                     <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Movies'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> 
                             <span style="color: #0000ff;">'public'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span> 
                             <span style="color: #0000ff;">'show_ui'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
                             <span style="color: #0000ff;">'supports'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                                        <span style="color: #0000ff;">'post-thumbnails'</span><span style="color: #339933;">,</span>
                                        <span style="color: #0000ff;">'excerpts'</span><span style="color: #339933;">,</span>
                                        <span style="color: #0000ff;">'trackbacks'</span><span style="color: #339933;">,</span>
                                        <span style="color: #0000ff;">'custom-fields'</span><span style="color: #339933;">,</span>
                                        <span style="color: #0000ff;">'comments'</span><span style="color: #339933;">,</span>
                                        <span style="color: #0000ff;">'revisions'</span><span style="color: #009900;">&#41;</span>
                                <span style="color: #009900;">&#41;</span> 
                      <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	register_taxonomy_for_object_type<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'post_tag'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'movies'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post_type_movies'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p><img
src="http://wpengineer.com/blog/wp-content/uploads/custom-post-type.png" alt="" title="custom-post-type" width="450" height="602" class="aligncenter size-full wp-image-1971" /></p><h4>The default arguments</h4><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">// Args prefixed with an underscore are reserved for internal use.</span>
<span style="color: #000088;">$defaults</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
    <span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'publicly_queryable'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'exclude_from_search'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'_builtin'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'_edit_link'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'post.php?post=%d'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'capability_type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'post'</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'hierarchical'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'public'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'rewrite'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'query_var'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'supports'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'register_meta_box_cb'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'taxonomies'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
    <span style="color: #0000ff;">'show_ui'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">null</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><ul><li><strong>label</strong> - A descriptive name for the post type marked for translation. Defaults to $post_type</li><li><strong>public</strong> - Whether posts of this type should be shown in the admin UI. Defaults to false</li><li><strong>exclude_from_search</strong> - Whether to exclude posts with this post type from search results. Defaults to true if the type is not public, false if the type is public</li><li><strong>publicly_queryable</strong> - Whether post_type queries can be performed from the front page.  Defaults to whatever public is set as</li><li><strong>show_ui</strong> - Whether to generate a default UI for managing this post type. Defaults to true if the type is public, false if the type is not public</li><li><strong>inherit_type</strong> - The post type from which to inherit the edit link and capability type. Defaults to none</li><li><strong>capability_type</strong> - The post type to use for checking read, edit, and delete capabilities. Defaults to "post"</li><li><strong>edit_cap</strong> - The capability that controls editing a particular object of this post type. Defaults to "edit_$capability_type" (edit_post)</li><li><strong>edit_type_cap</strong> - The capability that controls editing objects of this post type as a class. Defaults to "edit_ . $capability_type . s" (edit_posts)</li><li><strong>edit_others_cap</strong> - The capability that controls editing objects of this post type that are owned by other users. Defaults to "edit_others_ . $capability_type . s" (edit_others_posts)</li><li><strong>edit_others_cap</strong> - The capability that controls publishing objects of this post type. Defaults to "publish_ . $capability_type . s" (publish_posts)</li><li><strong>read_cap</strong> - The capability that controls reading a particular object of this post type. Defaults to "read_$capability_type" (read_post)</li><li><strong>delete_cap</strong> - The capability that controls deleting a particular object of this post type. Defaults to "delete_$capability_type" (delete_post)</li><li><strong>hierarchical</strong> - Whether the post type is hierarchical. Defaults to false</li><li><strong>supports</strong> - An alias for calling add_post_type_support() directly. See add_post_type_support() for Documentation. Defaults to none</li><li><strong>register_meta_box_cb</strong> - Provide a callback function that will be called when setting up the meta boxes for the edit form.  Do remove_meta_box() and add_meta_box() calls in the callback</li><li><strong>taxonomies</strong> - An array of taxonomy identifiers that will be registered for the post type.  Default is no taxonomies. Taxonomies can be registered later with register_taxonomy() or register_taxonomy_for_object_type()</li></ul><h4>Including Custom Taxonomies</h4><p>In the following example we include in our Post-Type a Taxonomy with two possibilities; own Tags and categories for Post-Type <em>Movies</em>, the classical tag, without hierarchy and one as category, tag with hierarchies.</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> post_type_movies<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	register_post_type<span style="color: #009900;">&#40;</span>
                <span style="color: #0000ff;">'movies'</span><span style="color: #339933;">,</span> 
                <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                        <span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Movies'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
                        <span style="color: #0000ff;">'public'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
                        <span style="color: #0000ff;">'show_ui'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span>
                        <span style="color: #0000ff;">'supports'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                                     <span style="color: #0000ff;">'post-thumbnails'</span><span style="color: #339933;">,</span>
                                     <span style="color: #0000ff;">'excerpts'</span><span style="color: #339933;">,</span>
                                     <span style="color: #0000ff;">'trackbacks'</span><span style="color: #339933;">,</span>
                                     <span style="color: #0000ff;">'custom-fields'</span><span style="color: #339933;">,</span>
                                     <span style="color: #0000ff;">'comments'</span><span style="color: #339933;">,</span>
                                     <span style="color: #0000ff;">'revisions'</span><span style="color: #009900;">&#41;</span>
                <span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
	register_taxonomy<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'actor'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'movies'</span><span style="color: #339933;">,</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'hierarchical'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Actor'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
&nbsp;
        register_taxonomy<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'production'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'movies'</span><span style="color: #339933;">,</span>
		<span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
                         <span style="color: #0000ff;">'hierarchical'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #339933;">,</span>
			 <span style="color: #0000ff;">'label'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Production'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
			 <span style="color: #0000ff;">'query_var'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'production'</span><span style="color: #339933;">,</span>
			 <span style="color: #0000ff;">'rewrite'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'slug'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'production'</span> <span style="color: #009900;">&#41;</span>
		<span style="color: #009900;">&#41;</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_action<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'init'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'post_type_movies'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p><img
src="http://wpengineer.com/blog/wp-content/uploads/taxonomy-custom-post-type.png" alt="" title="taxonomy-custom-post-type" width="450" height="385" class="aligncenter size-full wp-image-1972" /></p><p>Definitely a very interesting and useful feature which provides many possibilities to play around with.<br
/><hr
/><h3>Related posts:</h3><ul><li><a
href="http://wpengineer.com/custom-post-type-and-permalink/" rel="bookmark" title="Permanent Link: Custom Post Type and Permalink" class="liinternal">Custom Post Type and Permalink</a></li><li><a
href="http://wpengineer.com/custom-fields-in-your-feed/" rel="bookmark" title="Permanent Link: Custom Fields in your Feed" class="liinternal">Custom Fields in your Feed</a></li><li><a
href="http://wpengineer.com/wordpress-3-0-custom-background-support/" rel="bookmark" title="Permanent Link: WordPress 3.0 Custom Background Support" class="liinternal">WordPress 3.0 Custom Background Support</a></li><li><a
href="http://wpengineer.com/sort-posts-custom-fields/" rel="bookmark" title="Permanent Link: Sort Posts With The Help Of Custom Fields" class="liinternal">Sort Posts With The Help Of Custom Fields</a></li><li><a
href="http://wpengineer.com/create-your-own-wordpress-login-design/" rel="bookmark" title="Permanent Link: Create Your Own WordPress Login Design" class="liinternal">Create Your Own WordPress Login Design</a></li></ul><hr
/><p><img
style="float:left;" src="http://wpengineer.com/favicon.ico" alt="WP Engineer Favicon"/> Thanks for subscribing our feed! <a
href="http://buysellads.com/buy/detail/3646/" class="liexternal">Sponsor the WP Engineer Blog</a> and get your brand in front of several hundred users per day!<br
/> &copy; <a
href="http://wpengineer.com/" class="liinternal">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p> ]]></content:encoded> <wfw:commentRss>http://wpengineer.com/impressions-of-custom-post-type/feed/</wfw:commentRss> <slash:comments>107</slash:comments> </item> <item><title>WordPress 3.0 Custom Background Support</title><link>http://wpengineer.com/wordpress-3-0-custom-background-support/</link> <comments>http://wpengineer.com/wordpress-3-0-custom-background-support/#comments</comments> <pubDate>Wed, 10 Feb 2010 08:22:34 +0000</pubDate> <dc:creator>Michael</dc:creator> <category><![CDATA[WordPress News]]></category> <category><![CDATA[Background Image]]></category> <category><![CDATA[Theme]]></category> <category><![CDATA[Twenty Ten]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[WP3.0]]></category><guid
isPermaLink="false">http://wpengineer.com/?p=1964</guid> <description><![CDATA[In WordPress 3.0, it will have, additional to the Custom Header Image support, also a Custom Background Support. A first snapshot is in the current trunk. To use the functionality, the theme needs in functions.php this line: add_custom_background&#40;&#41;; After that, there is in your backend under Appearance the menu Custom Background available. After uploading an [...]]]></description> <content:encoded><![CDATA[<p>In WordPress 3.0, it will have, additional to the Custom Header Image support, also a Custom Background Support. A first snapshot is in the current trunk. To use the functionality, the theme needs in  functions.php this line:</p><div
class="wp_syntax"><div
class="code"><pre class="php" style="font-family:monospace;">add_custom_background<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>After that, there is in your backend under Appearance the menu Custom Background available.</p><p><img
class="aligncenter size-full wp-image-1968" title="WordPress 3.0 Custom Background Step 1" src="http://wpengineer.com/blog/wp-content/uploads/wordpress-custom-background-step-1.jpg" alt="WordPress 3.0 Custom Background Step 1" width="400" height="320" /></p><p>After uploading an image, you have the option to activate "Tile the background" and delete the background image.</p><p><img
class="aligncenter size-full wp-image-1967" title="WordPress 3.0 Custom Background Support Step 2" src="http://wpengineer.com/blog/wp-content/uploads/wordpress-custom-background-step-2.jpg" alt="WordPress 3.0 Custom Background Support Step 2" width="400" height="506" /></p><p>Here the result with the new Theme Twenty Ten.</p><p><img
class="aligncenter size-full wp-image-1966" title="Theme Twenty Ten with Custom Background Support" src="http://wpengineer.com/blog/wp-content/uploads/wordpress-custom-background-frontend.jpg" alt="Theme Twenty Ten with Custom Background Support" width="400" height="202" /><br
/><hr
/><h3>Related posts:</h3><ul><li><a
href="http://wpengineer.com/create-your-own-wordpress-login-design/" rel="bookmark" title="Permanent Link: Create Your Own WordPress Login Design" class="liinternal">Create Your Own WordPress Login Design</a></li><li><a
href="http://wpengineer.com/custom-fields-in-your-feed/" rel="bookmark" title="Permanent Link: Custom Fields in your Feed" class="liinternal">Custom Fields in your Feed</a></li><li><a
href="http://wpengineer.com/custom-post-type-and-permalink/" rel="bookmark" title="Permanent Link: Custom Post Type and Permalink" class="liinternal">Custom Post Type and Permalink</a></li><li><a
href="http://wpengineer.com/new-screenshots-of-wordpress-3-0/" rel="bookmark" title="Permanent Link: New Screenshots Of WordPress 3.0" class="liinternal">New Screenshots Of WordPress 3.0</a></li><li><a
href="http://wpengineer.com/sort-posts-custom-fields/" rel="bookmark" title="Permanent Link: Sort Posts With The Help Of Custom Fields" class="liinternal">Sort Posts With The Help Of Custom Fields</a></li></ul><hr
/><p><img
style="float:left;" src="http://wpengineer.com/favicon.ico" alt="WP Engineer Favicon"/> Thanks for subscribing our feed! <a
href="http://buysellads.com/buy/detail/3646/" class="liexternal">Sponsor the WP Engineer Blog</a> and get your brand in front of several hundred users per day!<br
/> &copy; <a
href="http://wpengineer.com/" class="liinternal">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p> ]]></content:encoded> <wfw:commentRss>http://wpengineer.com/wordpress-3-0-custom-background-support/feed/</wfw:commentRss> <slash:comments>34</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Database Caching 60/110 queries in 0.475 seconds using disk
Object Caching 2828/3014 objects using disk

Served from: wpengineer.com @ 2010-07-29 13:22:31 -->