<?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>Deluxe Blog Tips</title> <atom:link href="http://www.deluxeblogtips.com/feed" rel="self" type="application/rss+xml" /><link>http://www.deluxeblogtips.com</link> <description>WordPress, Blogger Tips, How-To Tutorials</description> <lastBuildDate>Wed, 22 Feb 2012 07:57:07 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <atom:link rel='hub' href='http://www.deluxeblogtips.com/?pushpress=hub'/> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Auto Create And Assign Static Homepage In WordPress</title><link>http://www.deluxeblogtips.com/2012/02/static-homepage.html</link> <comments>http://www.deluxeblogtips.com/2012/02/static-homepage.html#comments</comments> <pubDate>Wed, 22 Feb 2012 04:39:49 +0000</pubDate> <dc:creator>rilwis</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[page]]></category> <category><![CDATA[static homepage]]></category><guid isPermaLink="false">http://www.deluxeblogtips.com/?p=266</guid> <description><![CDATA[For some themes, when the homepage or more exactly &#8211; the front page, is well designed, and users have to follow the theme documentation to create such that page to make it look the same as in the demo. In this article, I&#8217;ll show you a simple way to check if a static homepage has been assigned and automatically create it if it&#8217;s missed. There are 2 options in WordPress that control static homepage: show_on_front &#8211; type of homepage (latest posts or static page) and page_on_front &#8211; which page is shown on homepage. Here&#8217;s the snippet that checks these options and automatically creates a Homepage page: function mytheme_create_homepage() { if ( 'page' === get_option( 'show_on_front' ) &#38;&#38; get_option( 'page_on_front' ) ) return; $homepage = wp_insert_post( array( 'post_title' =&#62; 'Homepage', 'post_status' =&#62; 'publish', 'post_type' =&#62; 'page', 'post_content' =&#62; 'Any content here', ) ); if ( $homepage ) { update_option( 'show_on_front', 'page' ); update_option( 'page_on_front', $homepage ); } }]]></description> <wfw:commentRss>http://www.deluxeblogtips.com/2012/02/static-homepage.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Add Custom Post Types And Custom Taxonomies To Menu Screen</title><link>http://www.deluxeblogtips.com/2012/02/add-custom-post-types-and-custom-taxonomies-to-menu-screen.html</link> <comments>http://www.deluxeblogtips.com/2012/02/add-custom-post-types-and-custom-taxonomies-to-menu-screen.html#comments</comments> <pubDate>Thu, 02 Feb 2012 14:46:08 +0000</pubDate> <dc:creator>rilwis</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[custom post type]]></category> <category><![CDATA[custom taxonomy]]></category> <category><![CDATA[menu]]></category><guid isPermaLink="false">http://www.deluxeblogtips.com/?p=263</guid> <description><![CDATA[By default in the Menus screen (Appearance -&#62; Menu), WordPress shows only meta boxes for Pages and Categories, from which you can select items and add to menus. Do you know that we can add the same meta boxes for all custom post types and custom taxonomies? Actually WordPress supports that feature, but it simply hides all these meta boxes to keep the screen clean. To turn on these meta boxes, just click to Screen Options and make sure to check the checkboxes of the custom post types and custom taxonomies you want to add as menu items. Here is a screenshot that worth thousands of words!]]></description> <wfw:commentRss>http://www.deluxeblogtips.com/2012/02/add-custom-post-types-and-custom-taxonomies-to-menu-screen.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Get Current Admin Screen Information In WordPress 3.3</title><link>http://www.deluxeblogtips.com/2012/01/get-admin-screen-information.html</link> <comments>http://www.deluxeblogtips.com/2012/01/get-admin-screen-information.html#comments</comments> <pubDate>Thu, 12 Jan 2012 07:23:12 +0000</pubDate> <dc:creator>rilwis</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[admin page]]></category> <category><![CDATA[admin screen]]></category><guid isPermaLink="false">http://www.deluxeblogtips.com/?p=260</guid> <description><![CDATA[There&#8217;re a couple of variables can help us determining which admin screen we&#8217;re seeing: $pagenow for current page ID, $typenow for current post type, etc. But using these variables requires us a huge afford to combine them just to get the correct information we want. Fortunately, since version 3.3, WordPress gives us a more completed solution with WP_Screen class which turns out the best way to get current admin screen information with ease of use. Note: This topic is started by Kaiser at wp-hackers email list. I&#8217;m writing it here and add some notes for quick reference for myself and for others who interested. To get the current screen object, simply use: $screen = get_current_screen(); This $screen is an instance of WP_Screen class, which has the following interesting public variables: Available public variables of current admin screen object 1. $screen-&#62;id: The unique ID of the screen. 2. $screen-&#62;base: The base type of the screen. This is typically the same as $screen-&#62;id but with any post types and taxonomies stripped. For example, the base of post.php or post-new.php is post for all post types. 3. $screen-&#62;action: Any action associated with the screen. - add for *-add.php and *-new.php screens. - Empty [...]]]></description> <wfw:commentRss>http://www.deluxeblogtips.com/2012/01/get-admin-screen-information.html/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>How To Show Youtube Video Outside The Post In WordPress</title><link>http://www.deluxeblogtips.com/2011/11/show-youtube-video-outside-post.html</link> <comments>http://www.deluxeblogtips.com/2011/11/show-youtube-video-outside-post.html#comments</comments> <pubDate>Tue, 29 Nov 2011 04:17:02 +0000</pubDate> <dc:creator>rilwis</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[embed]]></category> <category><![CDATA[youtube]]></category><guid isPermaLink="false">http://www.deluxeblogtips.com/?p=251</guid> <description><![CDATA[Embedding Youtube video in the post content in WordPress is extremely easy, just wrap it in the [ embed ]. Or even easier by checking the options Auto-embeds in Settings &#62; Media and WordPress will automatically turns Youtube URL into the embedded video. But that&#8217;s for the post content. How do we embed the Youtube video in other places of WordPress blog, such as sidebar, footer, etc.? Especially when you add the Youtube URL to the post using custom meta field? The first idea shown in my mind is that apply the shortcode [ embed ], just like this: $video_url = get_post_meta( get_the_ID(), 'youtube', true ); echo do_shortcode( "[ embed ]{$video_url}[ /embed ]" ); But it doesn&#8217;t work! Actually, the [ embed ] shortcode is not a real shortcode, meaning it&#8217;s not available site-wide. It&#8217;s added only when WordPress processes the post content, thus available only inside the loop. So, to solve this problem, we need to use a function wp_oembed_get(): $video_url = get_post_meta( get_the_ID(), 'youtube', true ); echo wp_oembed_get( $video_url, array( 'width' =&#62; 400 ) ); The 1st argument is the Youtube video URL, or even better, any supported oEmbed services. The 2nd argument is an array of video [...]]]></description> <wfw:commentRss>http://www.deluxeblogtips.com/2011/11/show-youtube-video-outside-post.html/feed</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Meta Box Script Is Now Available at WordPress.org</title><link>http://www.deluxeblogtips.com/2011/11/meta-box-plugin-is-now-available-at-wordpress-org.html</link> <comments>http://www.deluxeblogtips.com/2011/11/meta-box-plugin-is-now-available-at-wordpress-org.html#comments</comments> <pubDate>Mon, 07 Nov 2011 06:29:41 +0000</pubDate> <dc:creator>rilwis</dc:creator> <category><![CDATA[Blog]]></category> <category><![CDATA[meta box]]></category> <category><![CDATA[plugin]]></category><guid isPermaLink="false">http://www.deluxeblogtips.com/?p=247</guid> <description><![CDATA[As I said in a previous post, I was planning to put Meta Box Script on the plugin repository at WordPress.org. After 3 weeks of fixing some small bugs in version 4.0, today the plugin is now available at WordPress.org. The main purpose of forming the script as a plugin and putting it on WordPress.org is easy upgrade. So, themers, if you&#8217;re using this script by including it into functions.php file, you should consider to use it as a separated plugin (although it still works in theme). And at last, I&#8217;m open to hear your opinions and questions. If you find a bug, please report at GitHub (it&#8217;s easier to keep bug tracking there). By the way, the documentation at the project page is old but still valuable. I&#8217;m moving it to GitHub, too.]]></description> <wfw:commentRss>http://www.deluxeblogtips.com/2011/11/meta-box-plugin-is-now-available-at-wordpress-org.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>How to Remove Inline Style Of WordPress Gallery Shortcode</title><link>http://www.deluxeblogtips.com/2011/11/how-to-remove-inline-style-of-wordpress-gallery-shortcode.html</link> <comments>http://www.deluxeblogtips.com/2011/11/how-to-remove-inline-style-of-wordpress-gallery-shortcode.html#comments</comments> <pubDate>Sat, 05 Nov 2011 15:01:26 +0000</pubDate> <dc:creator>rilwis</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[gallery]]></category> <category><![CDATA[inline style]]></category> <category><![CDATA[shortcode]]></category><guid isPermaLink="false">http://www.deluxeblogtips.com/?p=245</guid> <description><![CDATA[Some users don&#8217;t notice this, but by default WordPress displays inline style for gallery shortcode. If you look at the source of a post that contains [ gallery ] shortcode, you&#8217;ll see something similar to: The &#60;style&#62; tag should not be there. It will break your HTML validation (if you care). Another reason you should get rid of that is it adds some additional CSS rule such as image border and margin-top which you might don&#8217;t like. To remove that inline &#60;style&#62; tag, just add the following line in your functions.php file: add_filter( 'use_default_gallery_style', '__return_false' ); The function __return_false is a small built-in function that simply returns false. It will stop WordPress from using default gallery style. Then you should add your own gallery style in your stylesheet. Here&#8217;s my style that you can get and change: .entry-content img { max-width: 98%; padding: 1%; border: 1px solid #ccc; } .gallery { clear: both; overflow: hidden; margin: 0 auto; } .gallery .gallery-item { overflow: hidden; float: left; margin: 10px 0 0; text-align: center; list-style: none; } .gallery-caption { font-size: 11px; } /* Image sizes depending on the number of columns Based on Hybrid theme */ .gallery-columns-0 .gallery-item { width: 100%; } [...]]]></description> <wfw:commentRss>http://www.deluxeblogtips.com/2011/11/how-to-remove-inline-style-of-wordpress-gallery-shortcode.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Meta Box Script 4.0 Needs Your Collaboration</title><link>http://www.deluxeblogtips.com/2011/10/meta-box-script-4-0-needs-your-collaboration.html</link> <comments>http://www.deluxeblogtips.com/2011/10/meta-box-script-4-0-needs-your-collaboration.html#comments</comments> <pubDate>Fri, 14 Oct 2011 14:27:52 +0000</pubDate> <dc:creator>rilwis</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[collaboration]]></category> <category><![CDATA[meta box]]></category> <category><![CDATA[news]]></category> <category><![CDATA[update]]></category><guid isPermaLink="false">http://www.deluxeblogtips.com/?p=243</guid> <description><![CDATA[It&#8217;s been a while since the version 3.2.2 of Meta Box Script was released. I was working on this script for refactoring, making a good architect for it so that users and developers can easily use and customize it. The result of refactoring (which I call v4.0 beta) is put on GitHub. There&#8217;re many major changes in this version: 1. Make it a plugin Although the script can work as a stand-alone package, making it a plugin can help it uses plugin advantages (such as functions to detect plugin&#8217;s path, URL). It also helps submitting the script to WordPress repository to make it&#8217;s easy to update (this is planned, and will be done after the v4.0 is completed). 2. Separating field functions (enqueue scripts and styles, add actions, show, save) into separated classes Wrap all field things in one file can make us easy to have an overview of the structure, but it makes the process of optimizing, improving or fixing bugs more difficult. I decided to separate all these things into their own files to avoid those problems. 3. Use filters to let user change HTML of fields As you know, in previous version the only way to change [...]]]></description> <wfw:commentRss>http://www.deluxeblogtips.com/2011/10/meta-box-script-4-0-needs-your-collaboration.html/feed</wfw:commentRss> <slash:comments>41</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching using apc
Object Caching 754/883 objects using apc

Served from: www.deluxeblogtips.com @ 2012-02-23 09:10:48 -->
