<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Vfxdude &#187; Topic: Tips and Tricks</title>
		<link>http://www.vfxdude.com/forum/topic/tips-and-tricks</link>
		<description>premium wordpress themes</description>
		<language>en-US</language>
		<pubDate>Sat, 18 May 2013 08:08:33 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.vfxdude.com/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.vfxdude.com/forum/rss/topic/tips-and-tricks" rel="self" type="application/rss+xml" />

		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks/page/2#post-13245</link>
			<pubDate>Wed, 13 Mar 2013 08:38:21 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">13245@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>An introduction to bfthumbs</strong></p>
<p>A shortcode, like bfthumbs, can be added to any page/post/template editor (in text mode), and it will display posts and designs based on the parameters added to it. For example this bfthumbs shortcode:</p>
<p><code>[bfthumbs]</code></p>
<p>Got no parameters, and will therefore use the default, that is showing the 3 latest posts in 3 columns, without any page navigation.</p>
<p><code>[bfthumbs sid="bfthumbs-blogfp"]</code></p>
<p>When adding a sid parameter (shortcode ID), the shortcode can be edited with the shortcode GUI (opened by pressing the "insert/update a shortcode" button below the editor):</p>
<p><img src="http://www.vfxdude.com/external-images/scguibutton.png"></p>
<p>Then bfthumbs-blogfp can be selected in the "Current Post Shortcodes" list and edited. The advantage with the Shortcode GUI is that all parameters are listed and described. When pressing the "Update post Shortcode" button (or clicking a label). The page/template will be updated and the page can be reloaded to show the modification. When exiting the Shortcode GUI press the exit button, or press outside the box (then the edit page/template page must also be reloaded to show the edited shortcode. The exit button reloads automatically though).</p>
<p><code>[bfthumbs sid="bfthumbs-blogfp" category="featured" numposts="6"]</code></p>
<p>The shortcode above will show posts from the featured category, and will now show 6 posts (numposts). The category parameter can be comma separated, so posts from more than one category can be displayed. Posts can be fetched based on tags (tags) or taxonomies (tax parameter), and there are also the query_string and query_stringa parameters for all other query parameters that can be <a href="https://codex.wordpress.org/Class_Reference/WP_Query">found here</a>. If creating a custom post type in the theme settings (custom tab) they will get their own categories and tags, and these can also be accessed with the category and tag parameters, even though they are custom taxonomies (they can also be used like this tax="postTypeName_category:featured").</p>
<p><code>[bfthumbs sid="bfthumbs-blogfp" category="featured" showposts="6" sidebar="true"]</code></p>
<p>Using showposts instead of numposts, makes it possible to have page navigation. It is the number of posts to show per page. For this to work, either the <a href="http://wordpress.org/extend/plugins/wp-pagenavi/">wp-pagenavi</a> or <a href="http://wordpress.org/extend/plugins/wp-page-numbers/">wp page numbers</a> plugin must be installed and activated. The <code>sidebar="true"</code> parameter makes the thumb posts fit in a page with a sidebar (default page template). And then it will look like this:</p>
<p><img src="http://vfxdude.com/external-images/bfthumbs-with-sidebar.png"></p>
<p><code>[bfthumbs sid="bfthumbs-blogfp" category="featured" showposts="8" width="180" numcols="4"]</code></p>
<p>Now a width parameter has been added to set a manual width of the thumb post, and the numcols sets the number of columns. It will now be 4 thumb posts columns in 2 rows, and a page navigation below it.</p>
<p><code>[bfthumbs sid="bfthumbs-blogfp" category="featured" showposts="8" width="180" height="120" numcols="4" ajaxnav="false"]</code></p>
<p>A height parameter has been added, and it sets the height of the thumbnail image, and not the whole post. The width is also for the thumbnail image, but also the whole post. The ajaxnav="false" parameter makes the page navigation work like normal WP page navigation. Then the page will reload and all pages will have a unique url, while without this parameter the javascript method will be used and it will not change the url. The advantage with the javascript method is that it makes it possible to have more than one bfthumbs shortcode per page with page navigation.</p>
<p>Adding <code>text="false"</code> will hide the text, and meta="true" will show the post meta (post date and categories). These are checkboxes at the bottom of the Shortcode GUI, so it is easier to know the options and edit it there.</p>
<p>If you want to edit the shortcode further, like adding the title above the image, or adding more post meta details, like tags, the <a href="http://youtu.be/-N0dein2ofw">bfthumbs layout manager</a> can be used. This can be accessed by pressing the bfthumbs layout button while editing the shortcode in the shortcode GUI:</p>
<p><img src="http://www.vfxdude.com/external-images/bfthumbslayout.png"></p>
<p>The nodes can be dragged from left to the right pane. If you only want to show the image and title, drag the image and the title node, and press save. If you want to show the title above the image, just drag and drop the title above the image node. </p>
<p><img src="http://www.vfxdude.com/external-images/bfthumbslayout-gui.png"></p>
<p>Clicking on the node will expand it and show it's options. For example, the image node has a method option where the type of image can be selected. By default the images with bfthumbs will be re sized with the timthumb script. This is a very flexible way to output the original images in all kind of sizes determined by the width and height parameters. In the image method select it is possible to wp resized images instead of the timthumb ones. Then the dimensions set in settings - media will be used, but it will still be re sized to fit within the bfthumbs width parameter, that determines the post width.</p>
<p>It is also possible to nest nodes to the bottom of some of the nodes, like the image and meta. For example a caption node can be nested to the image node (expand the image node and drag it to the bottom of the expanded node) to create a custom image caption, where the position can be set by the options of the caption node.</p>
<p>To add meta information to the post, like postdate and categories, the meta node can be used as a style container for the postdate, category, tags, taxonomy, author, editlink and commentlink nodes. Just drag and drop any of these to the bottom of the meta node and arrange their position. A separation marker can be added to the label option of these nodes. The meta node got several style options, like the default 2 lines or just a small text.</p>
<p><code>[bfthumbs sid="bfthumbs-blogfp" showposts="10" numwords="50" numcols="1" width="528" class="mythumbs" textwidth="365" image_width="150" image_height="130" textposition="right" image_align="left"]</code></p>
<p>The bfthumbs shortcode above got several special things going on. The layout will be like this:</p>
<p><img src="http://vfxdude.com/external-images/bfthumbs-image-align.png"></p>
<p>The <code>image_align="left"</code> parameter makes it possible to align the image within the thumb container. This means that the width is now only for the post container and not the image, therefore <code>image_width="150" image_height="130"</code> parameters are added. A thumb post where <code>image_align="left"</code> is set, the post content (title, text) will wrap around the image, but if adding the textposition="right" parameter the post content will be added in a separate container that will not wrap around the image. For this to work it must have a width and therefore a <code>textwidth="365"</code> parameter is added to the bfthumbs shortcode. </p>
<p>This shortcode will also work with the bfthumbs layout manager, where extra stuff can be added, like more meta information, wp sized images or social sharing buttons. In version 1.5 of the theme the " Add Social Share buttons at the bottom of posts" theme setting was added. This adds 3 social share buttons at the bottom of the post on the blog front page and the single article view. These buttons can also be addded the in the bfthumbs layout manager with the php node, just by calling the socialShareButtons function that outputs them. Drag a php node to the right pane and add this code to it:</p>
<p><code>&#60;?php socialShareButtons(); ?&#62;</code></p>
<p>For the the php node to work, the administrator must have the exec_php capability. You can add this with a capability manager to the administrator, or you can add this code in a child theme functions.php:</p>
<pre><code>function bf_add_custom_cap() {
    $role =&#38; get_role( &#039;administrator&#039; );
    if (!empty($role)) $role-&#62;add_cap( &#039;exec_php&#039; );
}
add_action(&#039;admin_init&#039;, &#039;bf_add_custom_cap&#039;);</code></pre>
<p>This is an extra security measure, that was taken from the Exec-PHP plugin. And the php code is also stored as encrypted text. <a href="http://www.vfxdude.com/forum/topic/cf-text#post-12908">Here's more info</a> on the php node.</p>
<p>Since the shortcode got a <code>class="mythumbs"</code> parameter custom css can be added for just this bfthumbs. Example:</p>
<p><code>.mythumbs .thumb { border-top: 1px solid #ddd; padding-top: 40px; margin-top: 20px; }<br />
.mythumbs .thumb:first-child { border: 0; margin-top: 10px; padding-top: 0; }<br />
.mythumbs .sharebuttons { margin: 20px 0 0; }<br />
.mythumbs .bftl-meta.lines { padding: 0; }</code></p>
<p>The above css adds a post separation line to the thumb, the sharebuttons are pushed a bit down with a top margin, and the style of the meta information is also modified. This css can be added to style.css of a <a href="http://www.vfxdude.com/bigfeature/2009/10/faq/#how2upgrade">child theme</a>, or the css field in the theme settings. If using bfthumbs in a shortcode template, the css can also be added to the css field of that template (in the template settings area).</p>
<p>With the <a href="http://youtu.be/mzFXQVhiNOs">shortcode template system</a> bfthumbs can be used to change the blog layout for the frontpage/index, archive, search and single article view. Adding a bfthumbs shortcode in a template and targeting for example the blog will show the same posts, but will replace the post design. Example shortcodes added to a blog frontpage template:</p>
<p><code>[bfthumbs sid="bfthumbs-blogfp" showposts="10" numwords="50" numcols="1" width="528" class="alignleft mythumbs" textwidth="365" image_width="150" image_height="130" textposition="right" image_align="left"]<br />
[widgetarea sid="widgetarea-blogfp" align="right"]</code></p>
<p>The bfthumbs is like the one shown earlier, and the widgetarea adds a sidebar. To left align the thumbnail posts an alignleft class is added to the bfthumbs, and to right align the sidebar an <code>align="right"</code> parameter is added.</p>
<p>Any page or template with bfthumbs (or any other shortcode) can be exported and imported at another wordpress installation. So instead of explaining all the steps above, I could just given you <a href="vfxdude.com/download/bfthumbs-blog-frontpage-template.zip">this file</a>, and you could just used the wordpress importer to load the template into the template system, but then you would not be able to create templates like this yourself. To import the <a href="vfxdude.com/download/bfthumbs-blog-frontpage-template.zip">template file</a>, go to tools - import - wordpress (install the wordpress importer plugin if it's not already there) and select the bfthumbs-blog-frontpage-template.xml file (unzip the the downloaded file) and upload and then choose "assign posts to an existing user: admin" and import. Then the template should be in the templates post list. If another template is already used for the blog frontpage, edit it and deselect blog under the "Where to use this template" section and publish. Then edit the imported template and select blog and publish. </p>
<p>In version 1.5 of the theme, a snippet feature was added. When this is enabled (it is by default) the shortcodes from a page or template can be added as a snippet. Click the "insert a snippet" button below the editor, and in the snippet window press the options tab, then press the "Add current post as a snippet" button. Now the shortcodes (including the bfthumbs layouts) can be quickly reused, by inserting it with the snippet system. When in a page/template/post press the "insert a snippet" button and press the insert button for the snippet to add to the editor (the cursor must be placed in the editor first). These snippets got their own custom post type, where they can be edited or deleted manually, and they can also be exported to be used in another installation.</p>
<p>In version 1.5 the bfloop shortcode was also added, and it is an alternative to bfthumbs. With this shortcode html can be added to the content area to manually create a template. This makes it very flexible, but also not as easy to use as the bfthumbs shortcode. See the <a href="http://www.vfxdude.com/bigfeature/2010/01/changelog/">changelog</a> for more info on the bfloop shortcode.</p>
<p>bfthumbs demos: <a href="http://www.vfxdude.com/testblog/shortcodes/thumb-posts/bfthumbs/">1</a>, <a href="http://www.vfxdude.com/testblog/shortcodes/thumb-posts/bfthumbs2/">2</a>, <a href="http://www.vfxdude.com/testblog/shortcodes/thumb-posts/bfthumbs3/">3</a>, <a href="http://www.vfxdude.com/testblog/shortcodes/thumb-posts/bfthumbs4/">4</a>,  <a href="http://www.vfxdude.com/testblog/shortcodes/thumb-posts/bfthumbs5/">5</a>, <a href="http://www.vfxdude.com/childtheme/bfct01/">6</a>, <a href="http://www.vfxdude.com/childtheme/bfct01/category/featured/">7</a>, <a href="http://www.vfxdude.com/childtheme/bfct03/">8</a>, <a href="http://www.vfxdude.com/childtheme/bfct03/section/design-2/">9</a>, <a href="http://www.vfxdude.com/childtheme/bfct03/?s=lorem">10</a>, <a href="http://www.vfxdude.com/childtheme/bfct04/">11</a>, <a href="http://www.vfxdude.com/blog2/showcase/bfthumbs/">12</a>, <a href="http://www.vfxdude.com/blog2/showcase/bfthumbs2/">13</a>, <a href="http://www.vfxdude.com/blog2/showcase/bfthumbs3/">14</a>.</p>
<p><a href="http://youtu.be/-N0dein2ofw">bfthumbs shortcode GUI and Layout video tutorial</a>.</p>
<p><a href="http://youtu.be/mzFXQVhiNOs">Shortcode template system video tutorial</a>.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-12859</link>
			<pubDate>Mon, 25 Feb 2013 11:07:07 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">12859@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Tips and tricks in forum posts</strong></p>
<p><ul><li><a href="http://www.vfxdude.com/forum/topic/pagenavi-on-single-posts">PageNavi on Single Posts</a> (next and previous post)</li><li><a href="http://www.vfxdude.com/forum/topic/help-with-video-size-on-frontpage#post-13361">Make videos not to resize</a></li><li><a href="http://www.vfxdude.com/forum/topic/featured-image-slide-show-slider#post-13300">Add sliders as featured post images to show the attached images</a></li><li><a href="http://www.vfxdude.com/forum/topic/possible#post-13215">How to intergrate bbPress</a></li><li><a href="http://www.vfxdude.com/forum/topic/bf-featured-posts-widget-issue?replies=4#post-13149">Show related posts with the bfthumbs shortcode</a></li><li><a href="http://www.vfxdude.com/forum/topic/about-an-authorphp-file#post-13044">Create an author template</a></li><li><a href="http://www.vfxdude.com/forum/topic/letter-limit-in-bfthumb">Limit the title length in the bfthumbs shortcode</a></li><li><a href="http://www.vfxdude.com/forum/topic/cf-text">How to use the php node in the bfthumbs layout manager</a></li><li><a href="http://www.vfxdude.com/forum/topic/dynamic-page-title-in-custom-template#post-12880">How to add dynamic headings in the shortcode template system</a></li><li><a href="http://www.vfxdude.com/forum/topic/about-archive-orand-search-sorting#post-12820">Add sorting to the archive and search</a></li><li><a href="http://www.vfxdude.com/forum/topic/add-scroll-on-bf-featured-widget">Add scroll to the featured widget/bfthumbs</a></li><li><a href="http://www.vfxdude.com/forum/topic/inserting-custom-thumbnail-to-a-facebook-link-share">Using a custom thumbnail for Facebook Link share/like</a></li><li><a href="http://www.vfxdude.com/forum/topic/replacing-header-picture-on-a-specific-page">Replacing header picture on a specific page</a></li><li><a href="http://www.vfxdude.com/forum/topic/adding-gradient-img-in-front-of-main-image">Adding a gradient image in front of bfthumbs image</a></li><li><a href="http://www.vfxdude.com/forum/topic/opening-links-in-new-tab-portfolio-page">Opening links in a new tab (Portfolio page)</a></li><li><a href="http://www.vfxdude.com/forum/topic/are-these-features-part-of-the-theme">How to add an author box and related posts at the bottom of articles</a></li><li><a href="http://www.vfxdude.com/forum/topic/boxes-random-apearing">Prevent wordpress to automatically add paragraphs to a page</a></li><li><a href="http://www.vfxdude.com/forum/topic/horizontal-sub-menu">Horizontal submenu child theme</a></li><li><a href="http://www.vfxdude.com/forum/topic/post-thumbnails-hover-effect">Post Thumbnails hover effect</a></li><li><a href="http://www.vfxdude.com/forum/topic/removing-timthumb-and-using-static-images#post-11334">Caching timthumb images with a CDN (Amazon Cloudfront)</a></li><li><a href="http://www.vfxdude.com/forum/topic/show-the-wp-post-thumbnail-if-the-image-is-not-wide-as-the-content-container">Show the WP Post Thumbnail if the feature/default image is not wide as the content</a></li><li><a href="http://www.vfxdude.com/forum/topic/show-older-posts-on-the-homepage-as-thumbnailcan-i-modify-before-thumbs#post-8991">Show older posts on the homepage as thumbnail...can I modify # before thumbs?</a></li><li><a href="http://www.vfxdude.com/forum/topic/adding-decoration-to-widgetsside-bar">Adding decoration to Widgets/Side Bar</a></li><li><a href="http://www.vfxdude.com/forum/topic/navigation-how-to-exclude-some-pages-from-a-dropdown-menu">Combine 2 separate navigations from 2 different sources</a></li><li><a href="http://www.vfxdude.com/forum/topic/bfnav-footer-on-standard-bigfeature-theme#post-1305">Add a bfnav footer on standard bigfeature theme</a> (the <a href="http://www.vfxdude.com/downloads/">bftopnav</a> child theme has this as an option)</li><li><a href="http://www.vfxdude.com/forum/topic/breadcrumbs-font-size#post-9274">Custom styling for the breadcrumbs</a></li><li><a href="http://www.vfxdude.com/forum/topic/jquery-custom-fades-arent-working-what-am-i-doing-wrong#post-3380">Add javascript from a child theme</a></li><li><a href="http://www.vfxdude.com/forum/topic/rss-feed-not-showing-featured-video#post-12855">Create a custom rss feed function for adding non timthumb images and videos</a></li><li><a href="http://www.vfxdude.com/forum/topic/add-search-to-navbar-navigation#post-7388">Add a search field to the navigation bar</a></li><li><a href="http://www.vfxdude.com/forum/topic/adding-a-graphic-next-to-the-search-bar#post-4246">Create a custom header</a></li><li><a href="http://www.vfxdude.com/forum/topic/additional-header-lines#post-239">Add scripts to the header with a function in a child theme</a></li><li><a href="http://www.vfxdude.com/forum/topic/dynamic-post-title-size#post-7554">Dynamic post title size</a></li><li><a href="http://www.vfxdude.com/forum/topic/java-script-quiz#post-6043">Add scripts/styles located in the child theme folder</a></li><li><a href="http://www.vfxdude.com/forum/topic/orphan-custom-pages#post-9474">Remove the navigation on some pages</a></li><li><a href="http://www.vfxdude.com/forum/topic/bf-feature-post-problem-and-bf-recent-comment-enquiry#post-9402">Dynamic related posts with bfthumbs based on the post categories</a> (in v1.5+ a dynamic="categories" paramater can be added instead. dynamic="tags" for tags)</li><li><a href="http://www.vfxdude.com/forum/topic/external-links-in-navigation#post-7752">Add social links to the main navigation</a></li><li><a href="http://www.vfxdude.com/forum/topic/is-there-a-way-to-add-adspace-below-navigation-to-every-single-post#post-10495">Add a widgetarea to every post below the navigation</a></li><li><a href="http://www.vfxdude.com/forum/topic/background-colour-of-content-box">Custom background color to box shortcode</a></li><li><a href="http://www.vfxdude.com/forum/topic/adding-sidebar-color">Add background color to the sidebar</a></li><li><a href="http://www.vfxdude.com/forum/topic/custom-line-breaks-in-post-titles#post-9926">Adding post titles with custom fields</a></li><li><a href="http://www.vfxdude.com/forum/topic/logo-sitename#post-9909">Center the logo and sitename</a></li><li><a href="http://www.vfxdude.com/forum/topic/fixed-header#post-9588">Make the header fixed to the top</a> (the <a href="http://www.vfxdude.com/downloads/">bftopnav</a> also does this)</li><li><a href="http://www.vfxdude.com/forum/topic/sidebar-and-frontpage-text">Move the Site tagline under the website name</a></li><li><a href="http://www.vfxdude.com/forum/topic/flexible-columns-on-the-footer-section#post-9578">Flexible Columns in the Footer Links Section</a></li><li><a href="http://www.vfxdude.com/forum/topic/class-bg-color#post-9536">Create custom color classes to use in shortcodes and templates</a></li><li><a href="http://www.vfxdude.com/forum/topic/how-to-make-box-sits-side-by-side">How to make boxes (box shortcode) sit side by side</a></li><li><a href="http://www.vfxdude.com/forum/topic/removing-feature-image-from-posts-but-keep-it-for-thumbs-and-frontpage-post#post-9517">Remove the feature/default image from single post pages</a></li><li><a href="http://www.vfxdude.com/forum/topic/changing-image-overlay#post-9341">Custom image caption/overlay for the bfthumbs shortcode</a></li><li><a href="http://www.vfxdude.com/forum/topic/centering-meta-post">Centering post meta and article title</a></li><li><a href="http://www.vfxdude.com/forum/topic/customize-read-more-button">Customize the Read More link</a></li><li><a href="http://www.vfxdude.com/forum/topic/boxes-random-apearing#post-11484">Remove auto paragraphs added by Wordpress for a page</a></li><li><a href="http://www.vfxdude.com/forum/topic/full-width-slider#post-13239">Make a box/container 100% screen width, even though it's inside the page container</a></li><li><a href="http://www.vfxdude.com/forum/topic/side-bars#post-13261">Replace the widget title with an image</a></li><li><a href="http://www.vfxdude.com/forum/topic/post-title-inside-bfthumb-picture">Add the post title inside the bfthumbs image</a></li><li><a href="http://www.vfxdude.com/forum/topic/insert-image-in-sidebar">Add an image to the sidebar</a></li><li><a href="http://www.vfxdude.com/forum/topic/how-to-change-default-search-to-google-cse-this-is-not-a-q-but-a-tutorial">How to change default search to Google CSE</a></li><li><a href="http://www.vfxdude.com/forum/topic/categories-change-name">Change the name of a category/page in the navigation</a></li><li><a href="http://www.vfxdude.com/forum/topic/removing-footer-links-widgets-from-certain-pages#post-8608">Use the shortcode template system to show/hide widgets</a></li><li><a href="http://www.vfxdude.com/forum/topic/side-bars">Replace the sidebar widget title with an image</a></li><br />
</ul>
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-9502</link>
			<pubDate>Wed, 05 Sep 2012 07:53:57 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">9502@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Custom Single Post Template</strong></p>
<p>Here are 4 methods to use custom single post templates.</p>
<p>Method 1:<br />
Use the <a href="http://www.vfxdude.com/bigfeature/2009/10/faq/#customsingle">custom single functionality</a> to set a single template per category.</p>
<p>Method 2:<br />
Use the template feature to set the template per category/tag/taxonomy/post type.<br />
1. Enable the "Custom Templates Feature" in the theme settings.<br />
2. Create a template in the template custom post that appared after enabling the feature.<br />
3. Add an include shortcode in the template, like this:<br />
<code>[bfinclude sid="bfinclude-nosidebar" filename="single-nosidebar.php"]</code><br />
4. Target the template for single in combination with a category/tag/taxonomy/post type.</p>
<p>Method 3:<br />
This is a Wordpress functionality. To assign a single post template for a custom post type. If the post type is called video, copy one of the existing single templates and rename it to <code>single-video.php</code></p>
<p>Method 4:<br />
Use the <a href="http://wordpress.org/extend/plugins/custom-post-template/">custom post template plugin</a> to set templates per posts.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-8826</link>
			<pubDate>Tue, 08 May 2012 09:17:51 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">8826@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>4 methods to create post pages like the blog index/frontpage</strong></p>
<p>1. Use the blog posts page template and specify a custom field category (category slug or id as value) to only show posts from a category. Then add a slider or whatever content at the top by inserting it into the post editor of that page. Check the "Disable the feature image on the frontpage" theme setting to to hide the feature image at the top. Btw, the feature image is best added with the set featured image functionality at the right column and instead of using the custom field method (external images can be added with the custom field method though). And videos can be added to the video field (iframe embed is recommended for html5 compability).</p>
<p>2. Or use the bfthumbs shortcode to add posts to pages (default or no sidebar template). By using the showposts parameter will define how many posts should be shown per page and by installing the wp-pagenavi or wp page numbers plugins there will be page navigation at the bottom (also set ajaxnav to false for normal page navigation). <a href="http://www.vfxdude.com/testblog/shortcodes/thumb-posts/bfthumbs/">Here are some examples</a> of post designs with this shortcode. I also recommend to see these video tutorials. Here's an example shortcode:<br />
<code><br />
[bfthumbs sid="bfthumbs-blogposts" showposts="9" numcols="1" width="528" image_width="250" image_height="200" image_align="left" ajaxnav="false"]</code></p>
<p>The ajaxnav="false" makes the page navigation work like the normal blog page navigation. The sid parameter makes it possible to edit the shortcode width the <a href="http://youtu.be/-N0dein2ofw">shortcode GUI</a>, and also use the <a href="http://youtu.be/mzFXQVhiNOs">bfthumbs layout manager</a> for bfthumbs for more advanced layouts/designs. <a href="http://www.vfxdude.com/childtheme/bfct03/">Example</a>.</p>
<p><blockquote><br />
Open the shortcode gui (below the page editor):</p>
<p><img src="http://www.vfxdude.com/external-images/scguibutton.png"><br />
</blockquote></p>
<p><blockquote><br />
Open the bfthumbs layout manager (select the shortcode in the "current post shortcodes" list):</p>
<p><img src="http://www.vfxdude.com/external-images/bfthumbslayout.png"><br />
</blockquote></p>
<p><blockquote><br />
Here's how to edit the layout of a bfthumbs shortcode. Integrated plugins, html/php, post meta information etc. can be added.</p>
<p><img src="http://www.vfxdude.com/external-images/bfthumbslayout-gui.png"><br />
</blockquote></p>
<p>3. or add a category/tag/taxonomy to the navigation (use custom taxonomies with custom post types). Then the <a href="http://youtu.be/mzFXQVhiNOs">shortcode template system</a> can be used to change the design/layout. The bfct01-03 child themes comes with several templates that can imported (import the bfct01.templates.xml and target where to use it) and applied to any blog/archive post listing.</p>
<p><blockquote><br />
Example of several shortcode templates. It is shown in in the target field if it enabled and where it is used. One template can be used in many areas at the same time. The template can be enabled for the blog, archive and also the search, or just a custom post type. The only thing necessary to make a template is to add a shortcode like listed in step 3, and it can be further modified with the bfthumbs shortcode layout. Custom sidebars can be added with the widgetarea shortcode or the main sidebar can be included by checking the template setting for it.</p>
<p><img src="http://www.vfxdude.com/external-images/sctemplates.png"><br />
</blockquote></p>
<p>4. or create a new php page template by copying the blogposts.php file and rename it in the header, and modify whatever.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-8511</link>
			<pubDate>Mon, 05 Mar 2012 15:58:39 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">8511@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Bfthumbs post layout using offset</strong></p>
<p><img src="http://vfxdude.com/external-images/bfthumbs-offset-layout.jpg"></p>
<p>The offset parameter in bfthumbs makes it possible to build quite complex post layout designs. It skips the number of posts of it's value. What posts it skips depends on the orderby and order parameters, and that is by default date and desc (newest posts first). That means an offset of 1 skips the first post. In version 1.4.2 the onlynav="true" parameter was also added to make it possible to use paging with such a layout. It only shows the paging plugin and no posts for the first page, but the posts is shown for the next pages.</p>
<p>Here's the code that can be added to a page or a shortcode template:</p>
<p><code>&#60;div class="fponly"&#62;<br />
[bfthumbs sid="bfthumbs-ol1" numposts="1" numcols="1" width="528" height="200" caption="overlay" text="false" title="false" onlyfirstpage="true"]<br />
[bfthumbs sid="bfthumbs-ol2" numposts="2" numcols="2" width="244" height="120" offset="1" onlyfirstpage="true"]</p>
<p>&#60;!-- The AD in the picture is added here --&#62;</p>
<p>[bfthumbs sid="bfthumbs-ol3" numposts="3" numwords="10" numcols="3" width="149" height="80" offset="3" onlyfirstpage="true"]<br />
&#60;/div&#62;</p>
<p>[bfthumbs sid="bfthumbs-ol-pages" showposts="6" ajaxnav="false" onlynav="true" sidebar="true"]</code></p>
<p>The fponly class and onlyfirstpage="true" parameter hides the offset layout for the next pages, so it's only the first page that will have this look. The last bfthumbs only shows the navigation on the first page and also determines the post layout design for the next pages. The showposts parameter must be the number of posts shown on the frontpage for the paging plugin to be correct.</p>
<p><strong>Offset layouts for other pages</strong></p>
<p>In version 1.4.2.1 offsetnav and offsetposts parameters was added to bfthumbs, so that offset layouts can be paged. In the above example only the first page will have that post layout, but with the code below all pages will have the same design. An offsetnav parameter is used for the navigation (instead of the onlynav in the above example) and an offsetposts parameter must be added to all the shortcodes showing posts (this is the number of posts shown per page). Pagination classes was also added to be able to show stuff at specific pages (spage1, spage2 etc.). </p>
<p><code>[bfthumbs sid="bfthumbs-ol1" numposts="1" offsetposts="6" numcols="1" width="528" height="200" caption="overlay" text="false" title="false"]</p>
<p>[bfthumbs sid="bfthumbs-ol2" numposts="2" offsetposts="6" numcols="2" width="244" height="120"  offset="1" class="alignleft"]</code></p>
<pre><code>&#60;!-- AD image only shown on page 2 (spage2 class) --&#62;
&#60;a href=&#34;#&#34; class=&#34;spage2&#34;&#62;&#60;img src=&#34;adimage.jpg&#34; alt=&#34;&#34; title=&#34;bliss&#34; /&#62;&#60;/a&#62;</code></pre>
<p><code>[bfthumbs sid="bfthumbs-ol3" numposts="3" offsetposts="6" numwords="10" numcols="3" width="149" height="80" offset="3"]</p>
<p>[bfthumbs sid="bfthumbs-ol-pages" showposts="6" ajaxnav="false" offsetnav="true" sidebar="true"]</code>
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-8510</link>
			<pubDate>Mon, 05 Mar 2012 14:07:13 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">8510@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Center align the main navigation</strong></p>
<p>Add these styles to style.css of a child theme or to the the css field in the theme settings:<br />
<code>#header ul.navigation { text-align: center; }<br />
#header ul.navigation ul { text-align: left; }<br />
#header ul.navigation &#62; li, #header ul.navigation &#62; li &#62; a { display: inline-block; float: none; }</code></p>
<p>Here's another method using a table and a custom navigation function:</p>
<p>Add this code to functions.php of a child theme:</p>
<pre><code>add_action( &#39;bf_header&#39;, &#39;custom_navigation&#39;, 11 );
function custom_navigation() { ?&#62;
    &#60;div class=&#34;clear&#34;&#62;&#60;/div&#62;
    &#60;div class=&#34;navbg&#34;&#62;&#60;table&#62;&#60;tr&#62;&#60;td&#62;
      &#60;?php bf_navigation(); ?&#62;
    &#60;/td&#62;&#60;/tr&#62;&#60;/table&#62;&#60;/div&#62;
&#60;?php
}

add_action( &#39;wp_head&#39;, &#39;remove_navigation&#39;, 1 );
function remove_navigation() { remove_action( &#39;bf_header&#39;, &#39;bf_navigation&#39; ); }</code></pre>
<p>and add these styles to style.css of the child theme:</p>
<p><code>ul.navigation { width:auto; margin:0; border:0;}<br />
.navbg table { display: inline-table; margin:0; }<br />
.navbg { text-align:center; margin: 20px 0; } </code></p>
<p>A background or separating lines can be to the navbg class like this:<br />
<code>.navbg { background-color:#666; }<br />
.navbg { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</code></p>
<p>If using a child theme with a customHeader function, the main navigation is added manually in that function, so then the php code inside the custom_navigation above must replace that bf_navigation call.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-8447</link>
			<pubDate>Thu, 23 Feb 2012 21:22:44 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">8447@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Custom postdate</strong></p>
<p><img src="http://vfxdude.com/external-images/custom-datebox.png"></p>
<p>Here's the code (add to functions.php in a child theme. f.ex. <a href="http://www.vfxdude.com/downloads/">bfBlank</a>):</p>
<pre><code>function custom_postdate() { ?&#62;
  &#60;div class=&#34;datebox&#34;&#62;
    &#60;span class=&#34;dateday&#34;&#62;&#60;?php the_time(&#39;d&#39;); ?&#62;&#60;/span&#62;
    &#60;span class=&#34;datemonth&#34;&#62;&#60;?php the_time(&#39;M&#39;); ?&#62;&#60;/span&#62;
  &#60;/div&#62;
&#60;?php
}
add_action( &#39;bf_before_post_content&#39;, &#39;custom_postdate&#39;, 1 );</code></pre>
<p>and here's the style (add to style.css of the child theme):</p>
<pre><code>#content { overflow: visible; position: relative;}
.datebox {
    background-color: #550000;
    color: #FFFFFF;
    display: block;
    float: left;
    left: -103px;
    margin-top: -50px;
    padding: 4px 0;
    position: absolute;
    text-align: center;
    width: 53px;
}
.dateday { font-size: 28px; line-height: 1em;}
.datemonth { font-size: 14px; line-height: 20px; text-transform: uppercase; }</code></pre></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-8203</link>
			<pubDate>Fri, 20 Jan 2012 14:43:14 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">8203@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Image placeholder for bfthumbs</strong></p>
<p>add this code to functions.php (of a child theme) to add a placeholder for bfthumbs posts (a default image when there's no thumb image):</p>
<pre><code>function bf_thumb_placeholder() {
$placeholder = &#39;http://domain.com/default-thumb.jpg&#39;; ?&#62;
&#60;script&#62;
jQuery(function($){
  $(&#39;.thumb.bfthumbs:not(:has(img))&#39;).each(function(){
    $(this).prepend(&#39;&#60;img width=&#34;&#39;+($(this).width())+&#39;&#34; src=&#34;&#60;?php echo $placeholder; ?&#62;&#34; /&#62;&#39;);
  });
});
&#60;/script&#62;
&#60;?php
}
add_action( &#39;wp_head&#39;, &#39;bf_thumb_placeholder&#39; );</code></pre>
<p>Change the $placeholder url to the thumb placeholder url.</p>
<p>To only apply it some bfthumbs shortcodes, add a class paramater like this (in the shortcode): class="phthumb", and in the code above, change ".thumb" to ".phthumb .thumb".</p>
<p>-------</p>
<p>Here's another solution, using the bfthumbs_content filter:</p>
<pre><code>function bfthumbs_placeholder($thumbPost, $atts) {
    if ($atts[&#39;pholder&#39;]) $placeholder = $atts[&#39;pholder&#39;];
    else $placeholder = &#39;http://domain.com/default-thumb.jpg&#39;;
    if (!($width = $atts[&#39;width&#39;])) $width = &#39;255&#39;;
    $placeholder = &#39;&#60;img src=&#34;&#39;.$placeholder.&#39;&#34; width=&#34;&#39;.$width.&#39;&#34; /&#62;&#39;;
    $image = false;
    if (is_array($thumbPost[0])) {
    	foreach ($thumbPost as $items) if ($items[&#39;image&#39;]) $image = true;
	if (!$image) array_unshift($thumbPost, array(&#39;image&#39; =&#62; $placeholder));

    } else if (!$thumbPost[&#39;image&#39;]) $thumbPost[&#39;image&#39;] = $placeholder;

    return $thumbPost;
}
add_filter(&#39;bfthumbs_content&#39;, &#39;bfthumbs_placeholder&#39;, 10, 2);</code></pre>
<p>This will only work for bfthumbs, but the jQuery one can be modified to work with the blog thumbs, portfolio template, featured widget etc. The advantage using the filter one is that a pholder parameter can be added to the bfthumbs shortcode with a placeholder image url (can have different placeholder per shortcode).
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-7807</link>
			<pubDate>Fri, 02 Dec 2011 10:39:14 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">7807@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Child themes do's and dont's</strong></p>
<p>1. Do not change the header in style.css of the child theme, unless you know what you are doing. </p>
<p>2. The parent theme must be installed correctly. It must be in a folder bigfeature under the themes folder. Some install the downloaded zip file and then the bigfeature folder will be in a subfolder, and then child themes will not work. And this will also cause many other problems too.</p>
<p>3. Do not import style.css of the parent theme like done in other child themes. The importing is handled in functions.php. This improves the performance, and sets the right order of importing. </p>
<p>4. Do not copy all css from style.css of the parent theme into the child theme style.css. This will override all the theme setting styles and cause all kinds of problems. Only copy in those styles that should be overriden.</p>
<p>5. Do not copy header.php into the child theme, unless you know what you are doing. Changing this template will mess up the theme.</p>
<p>6. Do not remove any hooks, like wp_head or wp_footer since they must be there for the theme and plugins to work.</p>
<p>7. When copying templates into the child themes for modification, do not remove the importing of the header or footer, since these are essential for the theme to work.</p>
<p>8. If creating templates to be used with the import shortcode in the shortcode template system the header and footer can be removed and the whole div structure can be in the template. The "Remove the header &#38; footer html" setting must then be enabled.</p>
<p>9. If using the yarpp plugin with child themes the yarpp-template-bf.php template (from the bigfeature folder) must be copied into the child theme folder.</p>
<p>10. Functions added to functions.php of the child theme must have unique names. Many have copied code and gotten errors, then it's most likely a naming conflict with an existing function (in the child theme, parent theme, wordpress or plugins).
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-7579</link>
			<pubDate>Thu, 03 Nov 2011 18:56:15 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">7579@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Targeting the BF Page widget</strong></p>
<p>In version 1.4.1.1 the BF Page widget was modified to use the shortcode template system. This means that the content added in the template outputted by the BF Page widget will only show where it's targeted. Here's how:</p>
<p>1. Enable the "Enable Custom Templates Feature" theme setting.<br />
2. Create a new post in the Templates custom post.<br />
3. Add the content to be outputted by the BF Page plugin into the editor.<br />
4. Select the targeting under the editor (single, blog, page etc.) and the "BF Page widget template" checkbox, and then publish the post.<br />
5. Drag the BF Page widget to a widget area and select the template created in step 2-4.</p>
<p>Now the widget will only show where it's targeted (set in the template). And it's also possible to add a widgetarea shortcode to the template, this means you can combine sidebars. In other words, you can create a custom sidebar in the theme setting (1.4.1 functionality) and add widgets to this sidebar, and add it to the main sidebar with the BF Page widget, and then use the targeting to determine where it should display.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-7577</link>
			<pubDate>Thu, 03 Nov 2011 12:48:36 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">7577@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Shortcode Template System</strong></p>
<p>Here's a short tutorial (to clarify some stuff that was not shown in <a href="http://www.youtube.com/user/vfxdudedotcom#p/u/0/mzFXQVhiNOs">the video</a>):</p>
<p>1. Enable the "Enable Custom Templates Feature" theme setting.</p>
<p>2. Create a new post in the Templates custom post.</p>
<p>3. Add a bfthumbs to the editor (in html mode), like this:<br />
<code>[bfthumbs sid="bfthumbs-loop" showposts="10" width="153" height="120" numcols="5" marginright="20" numwords="10" ajaxnav="false"] </code></p>
<p>4. Select the targeting under the editor (blog, search etc.) and publish the post.</p>
<p>The shortcode above is a 5 column bfthumbs layout. The numcols="5" sets the number of columns, and the showposts="10" sets the number of posts shown on every page (must install wp-pagenavi or "wp page numbers" plugin for page navigation). The ajaxnav="false" parameter makes it so that it's normal page navigation (the page reloads).</p>
<p>The clue here is that there's no post fetching parameters in the bfthumbs shortcode (category, tag, tax etc.), so that it will show the post relevant for where it's targetted. For example, if the blog is the target then it will replace the normal blog design, but show the same posts, just with a custom design (same for the archive and search).</p>
<p>This makes it possible to have custom designs per category/taxonomy/custompost etc. For example a portfolio can be created with categories, and every category/taxonomy can have a different design. And there's more shortcodes for this template system, for example one for sidebars (widgetarea) and one for outputting hook content (bfhook), and also one for including php templates (bfinclude) added to a child theme (use the shortcode GUI to see the possible parameters and a description of each one).</p>
<p>One of the possibilities with this is also to include external php templates and target those. Just add an include shortcode with the name of a custom single.php template and it can be targeted with this system (enable the "Don't include header &#38; footer files" setting below the targeting if the template imports the header and footer). This means that the <a href="http://www.vfxdude.com/bigfeature/2009/10/faq/#customsingle">custom single functionality</a> is not necessary anymore since this is way more flexible, since it can target just about everything (custom post type, taxonomy type, taxonomy term, category, tag).</p>
<p>Another feature is to remove the header and footer html for just this template. This makes it possible to have a custom div structure (100% width designs etc.) for just the portfolio, while the blog is using the normal layout. Many possibilities with this system, and I'm exploring those with some new child themes coming soon.</p>
<p>The shortcodes from the "custom blog frontpage" and "featured thumbnails with bfthumbs" tutorials above can used in these templates. It uses 2 parameters that is important to learn, offset and onlyfirstpage. The offset parameter makes it possible to use many bfthumbs and continue the flow of posts. For example offset="1" makes the shortcode skip the first post and together with numposts or showposts (pages) the design can have many bfthumbs making up the post design. The onlyfirstpage parameter makes the bfthumbs only show up on the first page, but not on other pages when using ajaxnav="false" for normal pagination.</p>
<p>Also read the <a href="http://www.vfxdude.com/bigfeature/2010/01/changelog/">changelog</a> for version 1.4.1, since it got a lot of information about this system there. And also <a href="http://www.vfxdude.com/forum/topic/announcements#post-7040">read this</a> for more information and also some shortcode examples.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-7572</link>
			<pubDate>Wed, 02 Nov 2011 20:34:34 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">7572@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Custom related posts design</strong></p>
<p>In the latest version of the theme (1.4.1.1) it is possible to use the bfthumbs shortcode with the yarpp plugin. Then you can have any design (number of columns, width etc.) of the related posts thumbs. Here's how:</p>
<p>1. Enable the "Enable Custom Templates Feature" theme setting.</p>
<p>2. In Templates (a custom post that will appear. see <a href="http://www.youtube.com/user/vfxdudedotcom#p/u/0/mzFXQVhiNOs">this video</a> for more info.) create a new post and call it "yarpp template".<br />
Insert this code into the editor (in html mode):<br />
<code>&#60;h5&#62;Related Posts&#60;/h5&#62;<br />
[bfthumbs sid="bfthumbs-yarpp" numposts="6" numcols="3" width="200"]</code></p>
<p>3. Add this code to the child theme functions.php (use the bf_after_article hook to add above the comments):<br />
<pre><code>add_action( &#39;bf_after_comments&#39;, &#39;custom_related_posts&#39; );
function custom_related_posts() {
 echo do_shortcode(&#39;[bfyarpp template=&#34;yarpp template&#34;]&#39;);
}</code></pre>
<p>4. Deactivate the related posts setting in the theme settings.</p>
<p>Now the look of the related posts can modified with bfthumbs in the yarpp template.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-5359</link>
			<pubDate>Mon, 24 Jan 2011 14:49:23 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">5359@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>custom blog frontpage</strong></p>
<p><img src="http://www.vfxdude.com/external-images/custom-blog-frontpage.jpg"></p>
<p>bfthumbs has many different uses, like the featured thumbs above, but it can also be used to create a blog frontpage. The thumbs in the code below use an offset parameter to continue from the first post. That way a whole page can be designed with a magazine style look, adding ads in between and whatnot. There's no category or tag added so then all new posts are fetched. The older posts link can be to the second page of the blog or maybe the archive (replace the hash sign with the url). Add the code to a page using the default template (disable the "Use the name as heading in pages (default template)" theme setting).</p>
<p><code>[bfthumbs numposts="1" numcols="1"  width="528" height="250" caption="overlay" text="false" title="false"]</code></p>
<p><code>[bfthumbs numposts="6" numcols="3" offset="2"  marginright="15"  width="152" numwords="10" class="thumbframe1"]</code></p>
<p><code>&#60;a href=&#34;#&#34;&#62;« Older Posts&#60;/a&#62;</code></p>
<p><strong>Update:</strong></p>
<p>In version 1.4.0.4 some new features was added to make this even better. Now it works with normal page navigation (need one of the page navigation plugins listed <a href="http://www.vfxdude.com/bigfeature/2009/07/setting-up-the-theme/">here</a>), and also stuff can be shown only on the first page (this is useful for the first feature post). This way bfthumbs can be used instead of the blog or any page template. So the new code will then be:</p>
<p><code>[bfthumbs numposts="1" numcols="1"  width="528" height="250" caption="overlay" text="false" title="false" onlyfirstpage="true"]</code></p>
<p><code>[bfthumbs showposts="6" numcols="3" offset="2"  marginright="15"  width="152" numwords="10" class="thumbframe1" ajaxnav="false"]</code></p>
<p>The onlyfirstpage parameter is only implemented in bfthumbs, but here is how to do it with other shortcodes and content:</p>
<p>1. Add this css to style.css:<br />
body.paged .fponly { display:none; }</p>
<p>2. add this class to the shortcode, like this:<br />
<code>[bfslider class="fponly"]</code></p>
<p>or to a wrapping div, like this:<br />
<code>&#60;div class="fponly"&#62;[bfslider] everything inside this div will only show on the first page.&#60;/div&#62;</code>
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-5351</link>
			<pubDate>Sun, 23 Jan 2011 14:46:52 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">5351@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>featured thumbnails with bfthumbs</strong></p>
<p><img src="http://www.vfxdude.com/external-images/featuredthumbs.jpg"></p>
<p>Here's how to create a feature thumbs area (like on Engadget) with bfthumbs.</p>
<p>1. Add this code to a page (it can be a frontpage with no sidebar, or a page added to a widget area with the BF Page widget):<br />
<code>[bfthumbs category="feature" numposts="1"  width="500" height="170" marginright="2" marginbottom="2" caption="overlay" text="false" title="false" class="alignleft featuredthumbs"]</code></p>
<p><code>[bfthumbs category="feature" numposts="1" numcols="1" offset="2" width="345" height="170" marginbottom="2" caption="overlay" text="false" title="false" class="featuredthumbs"]</code></p>
<p><code>[bfthumbs category="feature" numposts="3" numcols="3" offset="3" width="281" height="120" marginright="2" caption="overlay" text="false" title="false" class="featuredthumbs"]</code></p>
<p>2. Add this css to bottom style.css to remove some margins (preferably in a <a href="http://www.vfxdude.com/bigfeature/2009/10/faq/#childtheme">child theme</a>)<br />
<code>.featuredthumbs .post.thumb .thumbcontent { margin:0; }<br />
.featuredthumbs .post.thumb { margin-top:0; }</code></p>
<p>Custom captions (independent of the post title) can be added with a custom field called thumbcaption.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-5349</link>
			<pubDate>Sun, 23 Jan 2011 12:29:12 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">5349@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>sidebar tabs for widgets</strong></p>
<p><img src="http://www.vfxdude.com/external-images/sidebartabs-look.png"></p>
<p>There are several plugins that makes it possible to add widgets to tabs in the sidebar. After testing some of them I found one that I like, the <a href="http://wordpress.org/extend/plugins/sidebartabs/">sidebarTabs</a> plugin. It supports multiple instances, and got lots of options. Here's how I set it up:</p>
<p>1. See the screenshots <a href="http://www.blogviche.com.br/plugin-sidebartabs/">here</a> how to add widgets to it.</p>
<p>2. Change the looks of the tabs by editing the SidebarTabs options. <a href="http://www.vfxdude.com/external-images/sidebartabs-options.png">Here's a screenshot</a> of the one I choose for the look in the image above.</p>
<p>3. To get the same look as in the picture add the css below to style.css (preferably in a <a href="http://www.vfxdude.com/bigfeature/2009/10/faq/#childtheme">child theme</a>):<br />
#sidebar .sidebarTabs_panes ul li { display: block; float: none; width: 100%; }<br />
#sidebar .sidebarTabs_panes .tb, #sidebar .sb_accordion div.pane { padding: 8px 0 8px 1px; }<br />
#sidebar .sidebarTabs a { margin-right: 6px !important; }
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-5322</link>
			<pubDate>Thu, 20 Jan 2011 12:23:25 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">5322@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>make the post image smaller</strong></p>
<p><blockquote><img src="http://vfxdude.com/external-images/post-thumb.png"></blockquote></p>
<p>The best way to make add smaller preview images for the blog posts is to insert the image into the post, with the size selected and left align it, and then add the &#60;!--more--&#62; tag after the image and the preview text. Then a readmore link will be added at that tags location. Here are some screenshots illustrating what I'm talking about: <a href="http://www.vfxdude.com/external-images/insert-image-into-editor.png">1</a>, <a href="http://www.vfxdude.com/external-images/insert-image-into-editor-html.png">2</a>, <a href="http://www.vfxdude.com/external-images/insert-image-into-editor-visual.png">3</a>, <a href="http://www.vfxdude.com/external-images/insert-image-into-editor-blog-frontpage.png">4</a>. You can still have bfthumbs (and slider) images by adding the image url to the "Thumbnail image URL" input field below the editor.</p>
<p>If you rather want to make the default image smaller (the one set as featured), you can do it with css, like this:</p>
<p>1. Enable the "Move the default post image below the title" theme setting.</p>
<p>2. Enable the "Disable the feature image on the frontpage" theme setting if you don't want the first image on the blog frontpage to be feature size (container width).</p>
<p>3. Add this css to the bottom style.css (preferably in a <a href="http://www.vfxdude.com/bigfeature/2009/10/faq/#childtheme">child theme</a>)<br />
<code>.post .postimage.normal { float:left; margin: 0 20px 10px 0; }<br />
.post .postimage.normal img { width: 200px; height: auto; }</code></p>
<p>The image must still be the content width to be shown, but css will resize it to the pixel width set in the css above. Increase the "Limit frontpage text" theme setting to show more preview text or use a &#60;!--more--&#62; tag in the post to set exactly what to show as preview text (adding text to the excerpt field also works). If you only want this on the frontpage of the blog change the <code>.post</code> selector to <code>.post.frontpage</code>.</p>
<p>Another way to make the blog frontpage images smaller is to enable the "Show older posts on the blog frontpage as thumbnail posts" settings, then posts and images will be shown in thumbnail size.</p>
<p>You can also design a page with the bfthumbs shortcode to be the blog frontpage like shown <a href="http://www.vfxdude.com/forum/topic/tips-and-tricks#post-5359">here</a>.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-5127</link>
			<pubDate>Fri, 17 Dec 2010 12:35:20 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">5127@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>add a divider between the bfthumbs posts</strong></p>
<p>1. add a class parameter to the bfthumbs shortcode, like this:<br />
<code>class="mythumbs"</code></p>
<p>2. reduce the width of the thumb posts (in the bfthumbs shortcode) to make place for the separator (and padding) by adding a width parameter:<br />
<code>width="241"</code></p>
<p>3. add the separator with css (add it to style.css (preferably in a child theme)):<br />
<code>.mythumbs .post.thumb { border-right: 1px solid #ddd; padding-right: 20px; }<br />
.mythumbs .post.thumb.last-thumb { border-right: none; padding-right: 0; }</code>
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-4824</link>
			<pubDate>Mon, 22 Nov 2010 12:05:04 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">4824@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>add a vertical navigation to the sidebar</strong></p>
<p>1. Create a new navigation, call it sidebarnav.</p>
<p>2. Create a page and add this shortcode:<br />
<code>[bfnav name="sidebarnav" style="verticalnav"]</code></p>
<p>3. Add this css to the bottom of style.css (preferably in a <a href="http://www.vfxdude.com/bigfeature/2009/10/faq/#childtheme">child theme</a>):<br />
<code>ul.navigation.verticalnav { width: 100%; }<br />
ul.navigation.verticalnav li { float: none; padding: 0; }<br />
ul.navigation.verticalnav li a { color:#333 !important; padding: 5px 0; }<br />
#sidebar { overflow: visible;  }<br />
#sidebar ul.navigation li li { border-right: 1px solid #ddd; border-top: none; margin: 0; }</code></p>
<p>4. Add the page to the sidebar with the BF Page widget.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-4638</link>
			<pubDate>Thu, 04 Nov 2010 18:49:40 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">4638@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>modifying the bfthumbs output</strong></p>
<p>The bfthumbs output can be changed with the bfthumbs_content filter. Here is an example how the post meta information (meta="true" must be set for it to show) can be changed (add it to functions.php of a child theme):</p>
<pre><code>function bfthumbs_meta($thumbpost) {
  global $post;
  foreach(get_the_category($post-&#62;ID) as $category)
    $categories[] = &#39;&#60;a href=&#34;&#39;.get_category_link( $category-&#62;cat_ID ).&#39;&#34;&#62;&#39;.$category-&#62;name.&#39;&#60;/a&#62;&#39;;
  $thumbpost[&#39;meta&#39;] = &#39;&#60;div class=&#34;meta&#34;&#62;&#39;.implode(&#39;, &#39;, $categories).&#39;&#60;/div&#62;&#39;;
  return $thumbpost;
}
add_filter(&#39;bfthumbs_content&#39;, &#39;bfthumbs_meta&#39;);</code></pre>
<p>Add the code to functions.php of a <a href="http://www.vfxdude.com/downloads/">child theme</a>. All elements of the thumbnail post can be changed this way, the thumblink, the length of the text or even the image shown. Do a vardump on the $thumbpost array passed to the filter to see what can be changed, like this: var_dump($thumbpost);</p>
<p><strong>Here's an example how to remove the comment link from the meta:</strong></p>
<pre><code>function bfthumbs_meta($thumbpost) {
  global $post, $bf_date_format;
  $thumbpost[&#39;meta&#39;] = &#39;&#60;div class=&#34;meta&#34;&#62;&#39;. get_the_time($bf_date_format) . &#39;&#60;/div&#62;&#39;;
  return $thumbpost;
}
add_filter(&#39;bfthumbs_content&#39;, &#39;bfthumbs_meta&#39;);</code></pre>
<p><strong>Here's an example how to add a comments link at the bottom (only on the home page):</strong></p>
<pre><code>function bfthumbs_custom($thumbpost) {
  global $post;
  if (is_home()) {
	  $comments = &#39;&#60;div class=&#34;meta&#34;&#62;&#60;a href=&#34;&#39;. get_comments_link($post-&#62;ID)
	  	     .&#39;&#34;&#62;Comments (&#39;.get_comments_number($post-&#62;ID) .&#39;)&#60;/a&#62;&#60;/div&#62;&#39;;
	  $thumbpost[&#39;text&#39;] = $thumbpost[&#39;text&#39;] . $comments;
  }
  return $thumbpost;
}
add_filter(&#39;bfthumbs_content&#39;, &#39;bfthumbs_custom&#39;);</code></pre>
<p><strong>You can also pass custom parameters. Example:</strong></p>
<p><code>[bfthumbs numposts="2" numcols="1" text="false" hideimage="true" topdate="true"]</code></p>
<pre><code>function bfthumbs_custom($thumbpost, $atts) {
  global $post, $bf_short_date_format;
  if ($atts[&#39;topdate&#39;] == &#39;true&#39;) {
	  $date = &#39;&#60;div class=&#34;thumbdate&#34;&#62;&#39;. get_the_time($bf_short_date_format, $post-&#62;ID) . &#39;&#60;/div&#62;&#39;;
	  $thumbpost[&#39;title&#39;] = $date . $thumbpost[&#39;title&#39;];
  }
  return $thumbpost;
}
add_filter(&#39;bfthumbs_content&#39;, &#39;bfthumbs_custom&#39;, 10, 2);</code></pre>
<p>The topdate is a custom parameter that is passed to the filter function. This way you can create all kind of designs based on custom parameters.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-4470</link>
			<pubDate>Tue, 19 Oct 2010 09:31:03 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">4470@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>custom header</strong></p>
<p>I have gotten several questions about how to customize the header. This can be done in the theme setting by adding/removing features and adding stuff to the header widget areas. For example you can add a header image to the top of the header by creating a page (with an image/ad or something) and adding it to the "Adspace - top of the page" or the "Adspace - Header" widget area with the BF Page widget (it's also possible to add a header image with the logo uploader). </p>
<p>However, if you want to do bigger changes creating a function in a child theme is the best approach. <a href="http://www.vfxdude.com/wp-content/uploads/2009/08/bfCustomHeader.zip">Here's a child theme</a> I created as an example how to create a custom header function to replace the built in one. It left aligns all navigation styles (normally the 3 last navigation styles are right aligned) and also includes the search box for all styles.</p>
<p>The advantage with this function is that you can add stuff like images or plugin calls, or even an <a href="http://www.vfxdude.com/bigfeature/2009/10/faq/#xtranavs">extra navigation</a>.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-4337</link>
			<pubDate>Wed, 06 Oct 2010 11:18:09 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">4337@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>create a custom navigation style</strong></p>
<p>I recommend to check the bfnav child theme, 3 navigations are used there, 2 of them got custom styles (check the functions.php how to call the navigation and set the style).</p>
<p>a short tutorial:<br />
1. use a child theme (<a href="http://www.vfxdude.com/bigfeature/2009/10/faq/#childtheme">topArt</a> maybe, since it's a blank canvas).<br />
2. remove the normal navigation hook (in functions.php) like this:<br />
<pre><code>add_action( &#39;wp_head&#39;, &#39;remove_actions&#39; );
function remove_actions() {
  remove_action( &#39;bf_header&#39;, &#39;bf_navigation&#39; );
}</code></pre>
<p>3. create a new navigation function like this:<br />
<pre><code>add_action( &#39;bf_header&#39;, &#39;my_navigation&#39; );
function my_navigation() {
  bf_navigation(&#34;&#34;,&#34;mynavigation&#34;);
}</code></pre>
<p>4. style the navigation like this (use firebug to find what to change):<br />
<code>ul.navigation.mynavigation { margin-top: 0; }<br />
ul.navigation.mynavigation li.current_page_item a { background-color: #333; }<br />
</code></p>
<p>Firebug is you best friend doing such work. <a href="http://www.vfxdude.com/bigfeature/2009/10/faq/#xtranavs">here's</a> info how to create more navigations.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-2530</link>
			<pubDate>Fri, 07 May 2010 14:24:34 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">2530@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>zoomcrop</strong></p>
<p>In version 1.3.5 a dropdown list was added to the theme setting for choosing how the images in thumbnail posts should be cropped. Topleft is the default, and then the bottom and right will be cropped away to fit the thumbnail container. With center the sides are cropped away, and with "no cropping" chosen the image will be sized exactly like the container (this can squash the image).</p>
<p>The default height of thumbnails is set with the "Thumb post image height" theme setting, but this can be overridden with a parameter in the bfthumbs shortcode. The width is calculated from the content width, but this can also be overridden with a parameter in bfthumbs and a "Thumb Width" (and "Thumb Width 2" for the thumbnails page template) theme setting for non bfthumbs thumbnail posts.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-2524</link>
			<pubDate>Fri, 07 May 2010 13:06:55 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">2524@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Sidebars on the left side</strong></p>
<p>In version 1.3.5 there is a setting to move sidebar2 to the left side of the content, but here's a tip if you want both sidebars to the left side (deactivate the setting mentioned first).</p>
<p>Add this css to the bottom of style.css:<br />
<code>body #content { float: right; margin-left: 50px; margin-right: 0; }</code>
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-2523</link>
			<pubDate>Fri, 07 May 2010 12:56:50 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">2523@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Add useful classes to the editor</strong></p>
<p>Install the <a href="http://wordpress.org/extend/plugins/tinymce-advanced/">TinyMCE Advanced plugin</a>. In the settings of the plugin drag styles to the top toolbar, and the editor will have a list of useful classes that can be added to containers etc.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-2522</link>
			<pubDate>Fri, 07 May 2010 11:56:23 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">2522@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Default/featured post image</strong></p>
<p>There are 5 ways to add a default post image (the image above the title). </p>
<p>1. Use the built in "Set featured image" functionality (this works from version 1.3.5.1). Press the Set featured image link in the right sidebar when editing a post/page and set the post image this way (it's not only for feature images, but also for thumb and content width images).</p>
<p>2. Add an image url to the "Image URL" field below the editor. This can be an uploaded file, or an external one (another domain name. external images doesn't get re sized with timthumb, so they can become distorted.)</p>
<p>3. Set it as default in the uploader (in the gallery tab). Works only for images uploaded for the current post.</p>
<p>4. Add an image url to the "Thumbnail image URL" field below the editor. This image will only be used for thumbnail posts (from version 1.3.5.1 it will override video thumb images).</p>
<p>5. Enable the "Use First Attached Image as default" theme setting, then the first image uploaded for a post will be used as default/featured/thumb.</p>
<p>This image will be automatically re sized with timthumb to feature/content/thumb width sizes. The image must be atleast the container width (this can be set in the theme settings) to be used as a feature image that spans the over the sidebar. If it's not wide enough it will be re sized to content width, and if it's not the width of the content area it will be used only for thumbnail posts. <a href="http://vfxdude.com/download/bigfeature-small-image.zip">Here are some templates</a> where smaller images also will show (unzip and upload them to the bigfeature folder or a child theme folder).</p>
<p>If the default post image does not show up, it’s probably a timthumb problem, check the troubleshooting at the bottom of <a href="http://www.vfxdude.com/bigfeature/2009/07/setting-up-the-theme/">this article</a>.</p>
<p>A default image is an image tied to the post, but not inserted into the editor. The default image can be used in all page templates and some shortcodes like bfthumbs and the sliders. </p>
<p>Take for example the portfolio page template, images will automatically be shown with the right layout and size. The default images resize depending on where they are displayed, this doesn't happen for images inserted into the post.</p>
<p>This resizing is especially important when it comes to thumbnail posts (<a href="http://www.vfxdude.com/testblog/shortcodes/thumb-posts/">bfthumbs</a>, thumbnail page template, and frontage of the blog (also archive and search), featured widget and related posts) since they can be sized in very many sizes to fit different designs.</p>
<p>The "Set featured image" functionality is just one of the ways of adding a default post image, but there is a featured size image in the blog and single view pages. The featured size image is a container width that spans over the sidebar. The first post on the blog frontpage can be a featured sized image, and also all default images on the single post view page. The image must be at least the container width (page width. 848px by default) to be shown like that, if the width is below that it will be shown in the content area above the title (it can be set in the theme seeings to be below the title too). If the image width is below the content width (528px by default) it will be only used for thumbnail posts. </p>
<p>If you want a different look to the blog frontpage, it can be designed with the bfthumbs shortcode like <a href="http://www.vfxdude.com/forum/topic/tips-and-tricks#post-5359">this</a>.</p>
<p>If you want to use the regular blog templates, but with smaller images, use <a href="http://vfxdude.com/download/bigfeature-small-image.zip">these templates</a> that allows smaller images to be shown (unzip and upload the files to the bigfeature folder or a child theme folder).</p>
<p>You can also insert the post preview image into the post instead of using default images. For it to be dispayed on the blog frontpage use <a href="http://www.vfxdude.com/forum/topic/tips-and-tricks#post-5322">this technique</a>. If you still want to use thumbnail posts (bfthumbs, slider etc.) you can add the image url to the "Thumbnail image URL" input field below the editor.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-2519</link>
			<pubDate>Fri, 07 May 2010 11:32:10 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">2519@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Firebug</strong></p>
<p>I recommend using <a href="http://getfirebug.com/">Firebug</a> for any customizations, you are blind without it. You can make changes to the website to test stuff without editing any files.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-2518</link>
			<pubDate>Fri, 07 May 2010 11:26:00 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">2518@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Add a class parameter to bfthumbs</strong></p>
<p>Add it like this: [bfthumbs class="mythumbstyle"], and style stuff like this:</p>
<p>to change the heading:<br />
<code>.bfthumbs.mythumbstyle a.thumb-link { font-size: 24px; }</code></p>
<p>To change the thumb image (set the width parameter if you use this code):<br />
<code>.bfthumbs.mythumbstyle .postimage { padding: 4px; border: 1px solid #ddd; }</code>
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-2517</link>
			<pubDate>Fri, 07 May 2010 11:12:34 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">2517@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Add comments to pages</strong></p>
<p>add this code to a page template (f.ex. page.php (the default page template)) to add comments (just before the endwhile):<br />
<code>&#60;?php comments_template(); ?&#62;</code>
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-2516</link>
			<pubDate>Fri, 07 May 2010 11:00:53 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">2516@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Speed up the website</strong></p>
<p>1. Enable the "Cache the settings stylesheet" theme setting. I recommend everyone to do this (I have added this as a step in the setup documentation that comes with the theme). This will write the theme settings styles to optionstyles.css in library/css (if this doesn't work, make the css folder writable).</p>
<p>2. Use a cache plugin. This will speed up the website very much, but the drawback is that some dynamic stats plugins (like popularity posts) will not work, and that the cache must be flushed if changes is made to the website (not necessary if just adding/updating posts). These have been tested with the theme: <a href="http://wordpress.org/extend/plugins/wp-super-cache/">WP Super Cache</a>, <a href="http://wordpress.org/extend/plugins/hyper-cache/">Hyper Cache</a> and <a href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache</a>. Hyper Cache is the simplest one to use, since it requires no configuration, and made to work with slow shared server hosting. W3 Total Cache is by far the most advanced one, and the best one for those that know what they are doing. It's good for caching stuff at a CDN network (see step 5 below for more info). WP Super Cache is the most popular one.</p>
<p>3. Use correct sized images to avoid resizing. If you are using feature images for the posts, adding images with the same width as the container (can be set in the theme settings) will make it to skip timthumb resizing (same for content width default images). Adding correct sized thumbnail images to the "Thumbnail image URL" below the post/page editor will also make the theme to skip timthumb for thumbnail posts. A custom thumbnail can also be added to override video thumbs images (from 1.3.5.1).</p>
<p>4. Avoid using too many plugins, and turn off unnecessary script loading in the plugin settings. For example the Shadowbox JS plugin loads by default many scripts (players) that you might not need, and in the settings you can change this (the bfthumbs functionality only needs the html and img players).</p>
<p>5. Cache images on a CDN network. Use <a href="http://www.vfxdude.com/forum/topic/removing-timthumb-and-using-static-images#post-11334">this method</a> (last post) to cache the timthumb images.
</p></description>
		</item>
		<item>
			<title>vfxdude on "Tips and Tricks"</title>
			<link>http://www.vfxdude.com/forum/topic/tips-and-tricks#post-2515</link>
			<pubDate>Fri, 07 May 2010 10:31:42 +0000</pubDate>
			<dc:creator>vfxdude</dc:creator>
			<guid isPermaLink="false">2515@http://www.vfxdude.com/forum/</guid>
			<description><p><strong>Convert the website to RTL (right to left):</strong></p>
<p>add this to the header.php (below the bf_head line):<br />
<code>&#60;link rel="stylesheet"  href="&#60;?php bloginfo('template_directory'); ?&#62;/library/css/rtl.css" type="text/css" media="screen" /&#62;</code></p>
<p>or in a child theme you can add this to functions.php:<br />
<code>function bf_rtlcss() { ?&#62;<br />
 &#60;link rel="stylesheet"  href="&#60;?php bloginfo('template_directory'); ?&#62;/library/css/rtl.css" type="text/css" media="screen" /&#62;<br />
&#60;?php }<br />
add_action( 'wp_head', 'bf_rtlcss' );<br />
</code>
</p></description>
		</item>

	</channel>
</rss>
