wordpress url functions
There are many url functions in wordpress which will tell you what is the address of different directories in wordpress.
Let me discuss each of these:-
plugins_url() gives you address of plugins directory. For example http://www.yoursite.com/wp-content/plugins
includes_url() gives you address of wp-includes directory. For example http://www.yoursite.com/wp-includes
content_url() gives you address of wp-content directory. For example http://www.yoursite.com/wp-content
admin_url() gives you address of wp-admin directory. For example http://www.yoursite.com/wp-admin
site_url() gives you address of your site. For example http://www.yoursite.com
home_url() gives you address of your site. For example http://www.yoursite.com
There is slight difference between site_url() and home_url(). Suppose you have saved your core files in wp directory and you want that your website address should be http://www.yoursite.com not http://www.yoursite.com/wp then the home_url() value will be http://www.yoursite.com and it is saved in wp-options table.
Related Posts
Don’t Miss A Post!
Categories
- Blogging (4)
- Browsers (7)
- computer beginners (11)
- computers (13)
- Freelancing (9)
- ipad and iphone (6)
- Javascript Tutorials (2)
- Laptops (1)
- Miscellenious (1)
- Mobiles (13)
- Photoshop video tutorial in urdu (7)
- Php Tutorials (3)
- Programming (31)
- Social Network (12)
- Wordpress (4)
- wordpress video tutorial in urdu (7)
Tags
2G 2G vs 3G 3G 3G and 4G 4G architecture Best social networking websites beta class vs object difference between 2G and 3G difference between 3G and 4G difference between class and object Difference between wamp Earn money Earn money by making videos facebook features firebug introduction to mvc isp isp versus web server lamp and xampp making videos model view controller mvc myspace networking sites new object vs class opera 11 orkut php popular Run xampp skype at same time teamviewer tool tools tutorial very web developer web development website development what is isp Why php
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.





