How to use bawmrp_posts_content
-
Hi all
How do I use the bawmrp_posts_content to create my own html structure.
The plugin produces an ‘ul’ list but I would really like a ‘dl’
Idealy I would like somehting like this.
<div class="bawmrp"> <dl> <dt> the_title(); </dt> <dd> the_post_thumbnail(); </dd> <dd> the_content(); </dd> </dl> <dl> ... </div>
I know this is completely wrong but is this any where close to how I would do this.
function relatedPostContent($head,$list,$foot,$final){ $list = array(); $head = '<div class="bawmrp">'; foreach($post->ID AS $id){ $list = '<a href=""><dl><dt>'.the_permalink($id).'</dt><dd>'.the_post_thumbnail($id).'</dd></dl></a>'; } $foot = '</div>'; $final = $head . $list . $foot; } add_filter('bawmrp_posts_content','relatedPostContent');
Any help would be greatly appreciated.
https://www.ads-software.com/plugins/baw-manual-related-posts/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to use bawmrp_posts_content’ is closed to new replies.