Ok things are different with the latest 1.3-alpha3 🙂 but there’s still a warning … string(111)
Place where shortcode was inserted
On Template for Custom Post linked ( contact, societe ), it always displays the “standard” view of the shortcode (with 1.3-alpha2). It changes now with 1.3-alpha3
I got something like this (1.3-alpha2)
https://skitch.com/francoislamotte/8i23e/post2post-shortcode-filter-problem
And it was my fault (for the errors above) to insert the shortcode in a POST. As I was searching why the FILTER was not loading, I’ve tried this without thinking about the logic of the code (which object was loaded, …) 😛
NOW WITH THE 1.3-alpha3
The filter template is well loaded/parsed but I get a warning (WP-Debug) and an HTML tag is missing.
The alert message
string(111) “/…/wp-content/themes/wpbootstrap-lessified/p2p-list-contacts_to_societes.php” string(111) “/Applications/MAMP/htdocs/prospection/wp-content/themes/wpbootstrap-lessified/p2p-list-contacts_to_societes.php”
And the template (shortcodes) looks like :
<h2>Profil Contact</h2>
- Nom: [types field=”nom”][/types]
- Prénom: [types field=”prenom”][/types]
- Titre: [types field=”titre”][/types]
<h2>P2P Connected</h2>
[p2p_connected type=contacts_to_societes]
<h2>P2P related (OL)</h2>
[p2p_related type=contacts_to_societes mode=ol]
https://skitch.com/francoislamotte/8i3d6/shortcode-template
The second shortcode has a h2 header that is missing in the display.
The display looks like :
https://skitch.com/francoislamotte/8i3rx/shortcode-display
The Filter code :
<br />
<div><br />
<h3>This comes from the <strong>FILTER</strong></h3><br />
<?php the_title(); ?><br /> # with links
</div</p>
<p>