Include a php file that is above WP installation hierarchically?

OK. I’m assuming you have WordPress setup as a sub-directory of your root URL. If so, this should work: <?php include ‘http://www.site.com/file.php’; ?> Sometimes people write the include special form with parentheses. In most cases it won’t break anything, but if your code looks like this, try removing them: <?php include(‘http://www.site.com/file.php’); ?> Also, make sure … Read more

Pages included in another page and duplicate content issues for SEO

You could use the NOINDEX, FOLLOW meta robots tag on the this ‘stack’ page, or the individual pages. <META NAME=”ROBOTS” CONTENT=”NOINDEX, NOFOLLOW”> This lets search engines crawl the page and all links on it, but they will not index the page and so any content on it won’t get counted as duplicate content. The code … Read more

Include inside sidebar

If you want you can use this plugin: PHP Text Widget This allows you to use a text widget and use your choice of php codes in the text widget and achieve whatever you want. I hope this helps

Incorrect search results in search.php – issue triggered by using `define(‘BodyID’, ‘search’); the_post();` in search.php

You should call the_post only inside the loop, or call rewind_posts() before actually starting the loop. sidenote: you are doing it totally wrong. don’t reinvent the wheel, look in the codex how to write a theme or use one of the bundled default themes as a base to your theme. No sane person starts to … Read more

add_action outside a plugin

You add your _setup function to wp_head without priority, so it’s given priority of 20. All of the actions you are trying to remove within that function either have a higher priority (lower number), or same priority but are already in the queue ahead of yours, so when your _setup function runs, they’ve already sent … Read more