When I imported production database and configured code on my local dev machine, I got this error even I had updated wp-config.php with correct information. I fixed the problem after some changes. This article explains troubleshooting steps to fix this error.
1. Display featured post with thumbnail.
2. Title will be placed below the thumbnail.
3. Featured posts will be randomly selected and must show default thumbnail if no thumbnail is defined for the post.
4. All selected posts must appear together, no slider to navigate.
5. It must not use any script(Not good for SEO) or plugin.
In my recent posts, I have explained How to install and configure Tweets By Post plugin. Now let us take a practical example to use it. Suppose you are writing on world cup cricket and you want to show related tweets at the bottom of your post to make it more social. After installation, you will get ‘Related Tweets Options‘ box below post in admin section.
In first part of the tutorial, I have explained installation of ‘Tweets By Post’ WordPress plugin. In this tutorial we will discuss to configure default settings and options. Click on Settings > Tweets By Post, It will show TweetsByPost Plugin Settings page. Let us take an example to understand. Suppose you have to show #google tweets by default.(See following screen-shot)
‘Tweets By Post’ WordPress Plugin adds post wise tweets at the end of your post. It handles twitter feeds, including @username, #hashtag, and link parsing post by post. It supports displaying profiles images, and even lets you control number of tweets. you can set default twitter settings or tweets criteria(very helpful for existing posts) and update it post by post.
Yesterday, I created a sub-domain in my site. To configure Google analytics to track content and visitor data for sub-domain, I searched and found following in Google code:
a default setup of Google Analytics is designed to track content and visitor data for a single domain, such as www.example.com. This means that even if you manage both a domain and a sub-domain, you must make modifications to the tracking code in order to share visitor data across both domains.
I have created a new category ‘Idhar-Udhar’, But I don’t want to show posts related to this category on home page. I saw “Function Reference/query posts”. there is parameter category_name which displays posts from only one category by name. There is no parameter to exclude posts by category_name. I tried -(minus sign) in following way, but not worked.
I tried ! sign also, but no luck.
For a wordpress blogger, it is required to setup and sync blog on local machine for theme, widget and plugin development and customization. this article shows the steps to setup wordpress blog on local machine from production server.
Suppose you have started blogging with blogger blog and after some time, you have created a new blog in wordpress or other services. Now you want to move some special posts(NOT ALL) from old blog to new blog and redirect user for these posts. How can you do? Here is a simple way to do this.
I like Mac OS X dock menu and decided to write an article to add this type of dock menu in the website/blog. In this article, I will cover a few ways to add dock style navigation menu for your website.
This article explains some tips related to post images in wordpress.
When you upload image in wordpress using “Add an Image” box and select file from your computer, it will create more than 3 images (different sizes). It is wastage of hosting space because only one file is to be used and it creates 5 files(on my machine).
Generally, it is required to add widgets (different from sidebar widgets) in specific page to simplify jobs. Suppose you have to show RSS feeds in specific wordpress page then it is better to add the RSS widget in the page to make life easier. Widget is placed only in sidebar. Can sidebar be customized as per custom layout?
The answer is YES.
You can create sidebars as per your requirement, place them in the page where you want and add different widgets in different sidebar.
Let us take simple example. Suppose you have to create custom page where widgets can be added then see following steps: