Basic WordPress Functions

Basic WordPress Functions

August 20, 2011 Everybody wants to make wordpress theme and like to have their own blog. Below are some basic wordpress function which can help to make basic theme for wordpress. 1) <?php bloginfo('stylesheet_directory'); ?> This wordpress function returns your active theme path. Like you have a theme by the name of  "demotheme". It will return: http://domain-name.com/wp-content/themes/demotheme 2) <?php echo get_option('home'); ?> It  returns your blog url. 3) <?php wp_list_pages('title_li='); ?> This function returns the list of the page. If you have made some page like Page1, Page2, Page3... It will generate like <li><a href=" ">Page1</a></li> <li><a href=" ">Page2</a></li> <li><a href=" ">Page3</a></li> <li><a href=" ">.........</a></li> <li><a href=" ">.........</a></li> <li><a href=" ">.........</a></li> 4) <?php wp_list_categories('title_li='); ?> This function returns the list of the categories. It generate the output same as "Pages" 5) <?php bloginfo('name'); ?> It returns your blog name which control by wp-admin-->setting-->general For more wordpress function you can check "Wordpress Functions"

Related Posts

from my blog


Hire WordPress Experts: Building Your Online Presence with Confidence

April 10, 2024

WordPress can help you create an online presence that is effective for your company. WordPress is a top-rated content management system. To harness its power, you need WordPress specialists. What...

Why Should Your Hire Freelance Web Developer: The Top Benefits

May 17, 2022

When developing a website or an app, there are two major ways to do it - outsource the job to a web development company or hire a freelancer to get...

Improve The Reach of Your Business With WordPress Development Services

December 28, 2015

Social media marketing has undoubtedly changed the game between companies that are constantly in competition with each other. Not only has social media allowed better access to customer thought and...