How do I postpend an anchor tag to get_permalink in this function?
-
Hi all,
I’m stuck. I’m working on a site that has a Parallax Banner that takes up most of the screen height.
I’m trying to modify the function that creates my “read more” links after my excerpts in my Recent Posts to link to the #content id in my single.php (opening the page after the tall banner).
I’m using the suggestion from the Codex on Customizing the Read More, (see below) but I don’t know enough .php to be able to insert the anchor tag (#content) that I’d like to postpend to the get_permalink without breaking the code.
// Replaces the excerpt "Read More" text by a link function new_excerpt_more($more) { global $post; return '<a class="moretag" href="'. get_permalink($post->ID) . '"> Read More...</a>'; } add_filter('excerpt_more', 'new_excerpt_more');
https://sottovocepress.com/brian/ and https://sottovocepress.com/brian/ashley-madison-hackers-come-together-to-fight-marital-infidelity/
Thoughts?
Many thanks in advance!
- The topic ‘How do I postpend an anchor tag to get_permalink in this function?’ is closed to new replies.