May 5, 2013 at 6:51 am | Blog | No comment
I added search boxes to my website. It is very easy to add a search box in wordpress. You need only simply add it as a widget to your sidebar, if your wordpress theme supports sidebar.
However, the search box widget may not be sufficient to satisfy some advanced requirements, for example:
1. you want to add search box to the header or other places rather than sidebar.
2. you want to add a search box with advanced query criteria, like a specific category or date etc.
before implementing the advanced features for the search box, we’d better to understand how the search box works in wordpress.
wordpress has a powerful query system. the search function is nothing special than a query as well. it queries posts or pages based on the keyword parameter “s”. for example, you want to query posts related to “aurelius”, the parameter is: “s=aurelius”, and you can try this on your web browser: http://pengbos.com/?s=aurelius, and you will get the results on aurelius.
March 4, 2013 at 4:39 pm | Blog, Featured | 4 comments
I have updated the premium wordpress theme: Dawn with several new features implemented.
1. Some bugs are fixed in the new version.
2. Added an option to disable timthumb php script. As not every hosting providers support timthumb, i added an option in the theme option panel for user to easily disable it.
you can download it from my store: http://pengbosshop.appspot.com/. license holders can send me an-email to get the latest version.
you can also try out the free version first: http://pengbos.com/category/themes#1
December 22, 2012 at 5:29 pm | Blog | No comment
The Raspberry Pi is a credit-card sized computer. It’s a capable little PC which can be used for many of the things that a desktop PC does. You can find details from its official website: http://www.raspberrypi.org/.
There are two models available. Model A has 256MB RAM, one USB port and no Ethernet (network connection). Model B has 512MB RAM, 2 USB port and an Ethernet port. of course, the price is different too. The Model A will cost $25 and the Model B $35.
I ordered one raspberry pi of Model B three weeks ago from RS components. I got the tiny computer this Wednesday. In the package, there is a small Raspberry(color) box containing the credit-card sized computer. Besides, there is one page of “quick start guide” and a page of “regulatory compliance and safety information”.
October 20, 2012 at 11:00 am | Blog | 1 comment
Recently, I had a chance to help a friend create a multi language wordpress site. And he suggested using a wordpress plugin named qTranslate. And actually i found it was very easy to use, so i want to share with you.
Warning: this plugin will add tags to your wordpress contents.
First, you can download the plugin from the wordpress plugin repository with a correct version. and save it into your /wp-content/plugins/ folder. or you can install it from the wordpress dashboard. Then activate the plugin.
August 25, 2012 at 4:03 pm | Announcement, Blog | 2 comments
to all wordpress theme users who have purchased license from Pengbos.com, the new versions of Aurelius and Corporattica are both released in the store, you are eligible to upgrade to new versions for free. Please comment or send me an email to get the latest version. Pengbos.com listen to your comments, and make improvements always.
The Aurelius new version includes:
1. scrollable blog items in the home page
2. configurable menu
3. configurable navigation items in bellow the blog items section
The Corporattica new version includes:
1. change the slider show to Flexslider which is compatible in almost all web browsers.
2. the three bits items link to contents instead of images.
Enjoy your the new versions.
(the free upgrade is only for license users, free users have to purchase a license in order to use the latest version)
July 15, 2012 at 7:34 am | Blog | 5 comments
All most of my themes follow “convention over configuration” rule, however it is simple but lacks of flexibility. Dawn is the first theme using the configuration options. It makes the theme easy to customize. Here is the step by step theme installation guide:
You have the wordpress (version 3.0 or higher) installed.
You have downloaded the dawn theme
upload the dawn theme to your wordpress theme folder, and enable the theme.
June 30, 2012 at 5:42 am | Blog | No comment
Last week, a friend asked urgent help from me, as his wordpress website was hacked. I opened his website with Firefox, and there was an Alert saying that the website distributed Mal ware, and was blocked by google (see the figure). I did some research on this, and finally fixed his Mal ware issue. I hope this article will help someone who has the similar problem.
First, there are some tips from Stopbadware for cleaning and securing your website. you should read this article first http://www.stopbadware.org/home/security. I followed the three steps to clean the badware.
1. Identifying badware behavior
2. Removing the badware behavior
3. Preventing future infection
March 4, 2012 at 10:36 am | Blog, Download | 11 comments
It is my first wordpress plugin. This simple plugin adds a slick HTML (Not XML) sitemap of you site by entering the shortcode [slick-sitemap] in the page or post content. This simple plugin is configurable in the dashboard. Settings include the “menu”, “column”, “utility menu”. You can select a menu you created. It utilize the SlickMap CSS for the layout. It’s suitable for most web sites – accommodating up to three levels of page navigation and additional utility links. It is compatible to all web browsers, even including IE 6.
This plugins is perfect for those who use WordPress as a CMS.
February 26, 2012 at 10:51 am | Blog | No comment
When i was trying to implement a new feature for corporattica theme, i wanted to get a random post from a category. btw, the new feature is to display a static picture for pages except for the home page, as users found that the sliders in normal pages disturbing.
At the beginning, i think about the most straight forward way, to know the number of posts in the category, and then to use the rand() function of PHP to get a number between 0 and the count. And then use the “offset” of wordpress query parameter to show the random post. However, i did not find the function to get the count of posts in a specific category.
And then, i was thinking further and i switched to another direction. Although i can not the post counts in the category, i can always the get first post in the category. If the first post in the category is random for each query, then my requirements fulfilled. We can order the queried posts randomly, and the first post in this list is also random. And the best part is, wordpress has already had this feature.
$args = array( 'category'=>'featured','numberposts' => 1, 'orderby' => 'rand' );
$rand_posts = get_posts( $args );
Sometimes the best way is not the straight forward way. And now the corporattica theme has the new feature of displaying a random static picture for pages other than Home Page.
December 29, 2011 at 9:56 am | Blog | 7 comments
Thank you for choosing my theme. If you have any questions that are beyond the scope of this manual, please feel free to comment or to email via my contact form.
A) Getting Started
In order to begin installing Redbusiness theme. You need the WordPress version above 3.0, the latest one is better. Here is the download URL. Once you downloaded and set it up, You are ready to go.
Upon downloading the zip file, you will unzip the file. Upload this folder to your themes folder at: your WordPress installation root directory /wp-content/themes
Log into WordPress administration and click on the Appearance >> Themes tab. After that is done, activate the theme as you would activate any other theme.
B) Home Page options