How to Get wordpress parent page/post title?

If you use pages and subpages or posts and parent posts on your WordPress blog, it should be a good idea to display parent page/post title while on a child page. Here’s a code to do that job easily.

To achieve this recipe, simply edit your page.php file and paste the following code where you’d like your parent page title to be displayed:

$parent_title = get_the_title($post->post_parent);
echo $parent_title;

That’s all. Also, this code should be some inspiration for creating breadcrumbs.


SEO 10 Steps to Better Search Rankings

Optimizing your website to boost its traffic is neither an easy task nor a rocket science. It is one of those tasks that require both creativity and hard-working. There are many factors that play a role in search engine rankings. Here are a few “on-site” optimization factors that are critical for better search engine rankings that could help you increase your chances of success.

To do well with your SEO strategy, you should have a solid framework to work through; this SEO framework should have the main 10 key elements in each and every SEO strategy, which are:

1. Keywords analysis = knowing your market

In any marketing activity, we should start with knowing the market. In Search engine optimization process, your ultimate goal is to deliver your marketing message to the clients.
How would you reach those clients, if they can’t find your website when they search your products and services?
Your message definitely need a medium to across to your clients, your online marketing plan will take care of this, which will start with knowing your market and keyword analysis.
Keywords analysis is the building block to any successful SEO, Which keywords your customer will use when searching your products and services, Keywords analysis works best through an extensive keyword exploration. Exploring the keywords that the researcher repeatedly searches for is one of the best techniques to do your research. One of the best tools that will help you in such exploration process is through Google keyword tool.
2. Competitive analysis
After exploring the keywords and phrases that best express your products, services, and the benefits you give to your clients. The second step is to study the strength of your competitors, through following these three steps:


  1. Selecting the competitors to analyze
  2. Analyzing the competitors websites  a. On-site (keywords, content) b. Off-site (backlinks, link building strategy)
  3. Investigating competitor SEO strategy.
  4. Competitive analysis is done through studying the websites that compete with you on such keywords, what is the strength of your competitor and how you would get a percentage of the current market shares through promoting your products and services.

3. Content
Both Quality and quantity will enable search engines to better rank your website.
4. Link building
Link Building is to create inbound links to your website. This can be done through different ways; one of them is to post your articles with links back to your website in high quality article websites. The main advantage behind link building is the quality traffic generated from those incoming links.

5. Analysis and reporting
While implementing the SEO strategy, the last step will be analyzing the process itself. We need to analyze the online marketing generated traffic, check the quality of that traffic generated and check the website organic search rank.
6. The Title Tag
The title tag plays one of the most important roles in search results at Google, and is almost always the heading Google chooses for each of its listings. Placement of your target phrase is best used near the start of the tag and repeated again in the middle or near the end. For best results each page on your site should have a totally unique title tag.

7. Meta Description Tag
The Meta Description tag is still occasionally used by Google as the description which appears in the search results themselves. Adding your keyword/s at the beginning of the description can help to attract a new visitor.

8. Meta Keyword Tag
When it comes to Google this tag is not really considered that much, and won´t influence your rankings too much. But still needs to be there for other Search Engines and it is best to keep it clean. When adding keywords to this tag, do not SPAM it, just add enough relative keywords that relate to the content of your page.

9. Heading Tags
Placement of target phrases within heading tags helps to establish the importance of those given phrases. Only place target phrases within a heading tag if it makes sense to do so, and don´t flood a page with numerous tags.

10. Image Alt Text
While image alt text still plays a minor role, its biggest part is within the use of image based navigation. If you have an image linked to another page, the alt text will be attributed much the same way as standard link anchor text is.

Continuous reporting for the SEO strategy is required to reach the main goal of quality traffic and improved conversion rate.

2010 in review

The stats helper monkeys at mulled over how this blog did in 2010, and here’s a high level summary of its overall blog health:

Healthy blog!

The Blog-Health-o-Meter™ reads Wow.

Crunchy numbers

Featured image

A helper monkey made this abstract painting, inspired by your stats.

About 3 million people visit the Taj Mahal every year. This blog was viewed about 30,000 times in 2010. If it were the Taj Mahal, it would take about 4 days for that many people to see it.

In 2010, there were 13 new posts, growing the total archive of this blog to 46 posts. There was 1 picture uploaded, taking a total of 5kb.

The busiest day of the year was September 22nd with 160 views. The most popular post that day was How to Get the Current Page URL.

Where did they come from?

The top referring sites in 2010 were,,,, and

Some visitors came searching, mostly for wordpress get page url, wordpress get current page, joomla get current url, openbravo pos mysql, and wordpress current page url.

Attractions in 2010

These are the posts and pages that got the most views in 2010.


How to Get the Current Page URL November 2008


Openbravo POS systen intregation with MySql October 2008


Select random value from MySQL database table. March 2009


PS Quotes for joomla 1.5.* February 2009


Adding custom columns/fields to Joomla article May 2010

Creat banglalink mobile remitence transfer method for bangladeshi.

At our country the new Banglalink mobile remittance method introduced and it is very very easy for us to withdraw money.Banglalink mobile company bring it for us to transfer money from several country.By using this we are able to withdraw money from anywhere at our country.Banglalink use several Bank for this system.

At this system a banglalink mobile user get an sms then he show this sms at Banglalink customer care then customer care representative give him the money.It is very very Easy.

You can contact with Banglalink customer care to this number 008801911304121


Ubuntu Linux Start / Restart / Stop Apache Web Server & MySQL Server

How do I start, restart or stop Apache 2 web server & MySQL server under Ubuntu Linux operating systems?

/etc/init.d/apache2 is service script used to start / stop / restart the Apache2 service under Debian or Ubuntu Linux. You need to login as root or use sudo command restart Apache.
sudo -i
Enter your root password
Task: Start Apache 2 Server
# /etc/init.d/apache2 start
$ sudo /etc/init.d/apache2 start

Task: Restart Apache 2 Server
# /etc/init.d/apache2 restart
$ sudo /etc/init.d/apache2 restart

Task: Stop Apache 2 Server
# /etc/init.d/apache2 stop
$ sudo /etc/init.d/apache2 stop

Task: Start MySQL Server
# /etc/init.d/mysql start
$ sudo /etc/init.d/mysql start

Task: Restart MySQL Server
# /etc/init.d/mysql restart
$ sudo /etc/init.d/mysql restart

Task: Stop MySQL Server
# /etc/init.d/mysql stop
$ sudo /etc/init.d/mysql stop

How to make jQuery work on the same page with Mootools and or Prototype?

Recently i have faced thats problem on my project. Several of my pages use both JQuery and Protoype. Also i have used Mootools some pages. JQuery this appears to be causing problems, because both libraries define a function named ‘$’.

JQuery provides a function noConflict() which relinquishes control of $ to other libraries that may be using it. So it seems like I need to go through all my pages that look like this:



and change them to look like this:


var $j = jQuery;

I should then be able to use ‘$’ for Prototype and ‘$j’ (or ‘jQuery’) for JQuery. I’m not entirely happy about duplicating these 2 lines of code in every relevant page, and expect that at some point somebody is likely to forget to add them to a new page. I’d prefer to be able to do the following

  • Create a file jquery-noconflict.js which “includes” jquery.js and the 2 lines of code shown above
  • Import jquery-noconflict.js (instead of jquery.js) in all my JSP/HTML pages

An alternate solution is simply to add the 2 lines of code above to jquery.js directly, but if I do that I’ll need to remember to do it every time I upgrade JQuery.