WordPress.org

Ready to get started?Download WordPress

Forums

Posts 2 Posts
[resolved] Modify shortcode html output (2 posts)

  1. transmitstudio
    Member
    Posted 1 year ago #

    I'm using the p2p_connected shortcode to display connected posts in my page template. What I need the shortcode to do is create the link to the connected post as it does but rather than output the title of the post I just want it to display "Overview". Also it really doesn't need to be in a ul but I can live with that if need be.

    Thanks for any assistance.

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

  2. scribu
    Member
    Plugin Author

    Posted 1 year ago #

    You can use the 'p2p_shortcode_html' filter:

    https://github.com/scribu/wp-posts-to-posts/wiki/Actions-and-filters

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.