WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
Templates for Widgets not working (6 posts)

  1. M-BP
    Member
    Posted 7 months ago #

    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 https://github.com/scribu/wp-posts-to-posts/wiki/Actions-and-filters.
    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.

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

    Do you have any idea where the issue could be?

    Thanks for your help.

    http://wordpress.org/plugins/posts-to-posts/

  2. tedinoz
    Member
    Posted 5 months ago #

    Would you show the rest of the code you are using in the 'different' template?

    Ted

  3. Manijero.com
    Member
    Posted 5 months ago #

    Also not working wp 3.8.1 for a child theme

  4. tedinoz
    Member
    Posted 5 months ago #

    Manijero.com, 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?

    Ted

  5. Manijero.com
    Member
    Posted 5 months ago #

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

  6. tedinoz
    Member
    Posted 5 months ago #

    Manijero.com

    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?

    Ted

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.