For one linked image per post, override that link with a permalink when on the main page

My solution was to work in the twentyten theme folder, the file “loop.php” Around line 145 I did this: <?php $content = get_the_content( __( ‘Continue reading <span class=”meta-nav”>&rarr;</span>’, ‘twentyten’ ) ); // http://stackoverflow.com/a/6366390/1195835 // http://stackoverflow.com/a/11886237/1195835 // http://stackoverflow.com/a/15469353/1195835 $doc = new DOMDocument(); $doc->loadHTML($content); $finder = new DomXPath($doc); $classname = “post-main-image”; $nodes = $finder->query(“//*[contains(concat(‘ ‘, normalize-space(@class), ‘ … Read more

Display single post inside accordion based on form submission results

Closing off as the issue is resolved. For anyone interested, the result is as follows (refer to the code detailed above for the initial DB-table connections, as the code below refers to the output only): if (isset($SelectedLocationID) && isset($SelectedSchoolID)) { ?> <div id=”resultsDiv”> <div id=”resultsHead”> <h3>Search results for routes between:</h3> <b><?php echo $selectedLocationName; ?></b> and … Read more

How can I modify a post depending on the source of the traffic?

Not a wordpress questions really. You will get much better responses at stackoverflow.com. However you instigated my curiosity… you can get the referral url by using the following javascript: document.referrer You could add that to your current AD script to check if the document.referrer == “some url” before displaying the ad. See more examples here