Support » Plugin: Posts 2 Posts » Templates for Widgets not working

  • Hi scribu

    First of all, thanks for this great plugin.

    I would like to use a different template for the Widget (the “default style” widget shows up with the correct content in it).

    In order to use a template, I followed your explanations on
    The template I created gets found by p2p but the widget shows up empty (the widget title shows up but the content (the connected posts) is empty). I even used the below markup you provide on github to test it, but still no luck.

      <?php the_post_thumbnail(); ?>
      <a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>

    Do you have any idea where the issue could be?

    Thanks for your help.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Would you show the rest of the code you are using in the ‘different’ template?


    Also not working wp 3.8.1 for a child theme, could you be a bit more specific than “not working”?

    In any event, are you saying that it does work for the parent, just not for the child?


    I can not change the default style and behavior, neither in child or parent.

    1 = Would you show your code for registration of the connection? Is this in the parent or child?
    2 = Also show the code for the output/rendering in the template?


Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Templates for Widgets not working’ is closed to new replies.