= How Do I Place In Custom Locations? = PHP
-
= How Do I Place In Custom Locations? =
In Content:
2. PHP Template Tag(must be below the_content())
–<?php global $mwm_aal; echo $mwm_aal->output_content_links(); ?>
Its cryptic to me. Can you post a few lines of code and where to put them?
I googled the_content() and came out with this code at the top of a page.template.php
// Better anchor links
function better_anchor_links($content) {
global $mwm_aal;
echo ‘<div class=”theclass”>’;
echo $mwm_aal->output_content_links();
echo ‘</div>’;
return $content;
}
add_filter( ‘the_content’, ‘better_anchor_links’ );works but with weird result, it puts a “contents” between links and numbers dont count, ie.
Contents
1. h1link
Contents
1. h1link02
Contents
1. h1link03how can i get rid of the “Contents” line and let it count right?
- The topic ‘= How Do I Place In Custom Locations? = PHP’ is closed to new replies.