Integrating Wordpress with PHPLD
April 11th, 2007 | adminSince seo experts would know that a blog will do good for a site, it’s almost neccessary to have a blog if you are running a directory. Since the reason for a directory is to be ranked high and to be found.
Anyway, I’m not going to go into that right now. I’ll just start on how I was able to integrate Wordpress with PHPLD (PHP Link Directory).
Step 1 - add the following to init.php:
Step 2 - if you want to post only on the homepage, add this to your main.tpl or where ever you want it show show:
{/foreach}
{/if}
Step 3 - create a .htaccess in your root of your blog (not of your main site since your main site will have phpld):
Step 4 - if you want to just list the title in the sub pages (basically, take out the excerpt part):
I don’t know if it’s the best way, but it’s one way. The other way is using the method describe here in DP forum. I had to do it this way because I wanted to be able to put the post in the directory anywhere I want and I already had the PHPLD done, so it’s just a matter of having the wordpress theme mirror the PHPLD theme. If you have PHPLD already done, you can copy over the html source into the wordpress theme. Though things like sponsor ad from PHPLD will not carry over to the blog. If someone knows how to do that, then please do share.
If you find this helpful and decide to use it, you can include a linkback to http://www.linkwebdirectory.com
Here is the code:
Happy Blogging!!



