By Navjot Singh on January 12, 2010
Does that sound to you a little tempting? Though everybody says working on WordPress is a breeze, but for a person who has never blogged before or for first time WordPress user, getting through the WordPress and its jargon can get a bit overwhelming sometimes. And support for WordPress out there is mostly community based and searching for the right answers can be time consuming and tedious at times.
Well I am now providing you with a unique WordPress Install and Support Service which will help you with setting up of your first WordPress blog, getting a cool theme for it and a set of essential plugins/addons for it. Continue reading “Get your Wordpress Blog with Support for Free”
Posted in NSpeaks, Wordpress
By Navjot Singh on February 8, 2010
Finally Wordpress SVN has included the new default theme which we will get in 3.0. Its called TwentyTen (2010). It’s based on the Kirby Theme by Ian Stewart released earlier this year as a proposal for a Default Wordpress Theme. Eventually, Wordpress seems to have picked it up for its new default theme. There are lots of new features currently available in the default theme which include:
- Drop Down Page Menus
- 6 Widget Areas including 2 in Sidebar and 4 footer widgets
- Asides and Gallery Posts Styling
- Archives, Category and Search Pages show now only excerpts instead of full posts improving the SEO (though Search’s broken as of now)
- HTML 5 Validation
- Author Template plus Author Styling beneath each post
- Sticky Posts Styling
- Much Improved and descriptive Page Titles for various Pages
- Improved Read More Text
- Control Excerpt’s Length via Functions.php
- Next and Previous Image Links when a gallery image is posted
To check the theme in action, head to 2010dev.wordpress.com
And to install and test the theme yourself, get Wordpress through SVN.
Here are some screenshots of the New Theme:
Posted in Wordpress, Wordpress Themes
By Navjot Singh on January 11, 2010
Shortcodes and Custom Fields are two very powerful features of Wordpress which allow you to insert any custom content anywhere on your site. But in certain cases, you may need to insert a shortcode into your Custom field. This can happen if a plugin you use only offers shortcodes but you need to insert that shortcode only on a certain portion of the theme (e.g. single.php). Now custom fields can be placed at any place of the theme but Shortcodes only appear in post content. And if you include shortcode directly as a custom field value, it will be displayed as it is without getting parsed. For example, if you insert [youtube]VIDEOURL[/youtube] in your custom field to display youtube’s video (In the Viper Video Tags Plugin), it will show up as [youtube]VIDEOURL[/youtube] instead of the video which is because it does not parse shortcodes. But then Wordpress is too great so don’t worry, since a hack is there which will allow you to parse Shortcodes into your custom fields:
<?php
$var = apply_filters('the_content', get_post_meta($post->ID, 'Custom Field', $single = true) );
?>
In the above code, instead of directly getting a custom field’s value and displaying, apply the filter ‘the_content’ directly to the retreived custom field’s value. This ensures all post content properties including shortcode are applied to the custom field’s value. And hence the shortcode is parsed in the custom field. Now you can use $var anywhere to show the parsed value of the shortcode.
You will need to apply the filter to all the custom field variables individually.
Updated so that the concept is more clear. Also cleaned up and eased the code.
Posted in Useful Tips, Wordpress