• Resolved ttmt

    (@ttmt)


    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)
  • Plugin Author Julio Potier

    (@juliobox)

    hello

    in a few version i’ll add a kind of system using a template.php file
    so you can use your own (based on mine).

    thank you

Viewing 1 replies (of 1 total)
  • The topic ‘How to use bawmrp_posts_content’ is closed to new replies.