Actually my needs are to manipulate the template of a single element of the query a little deeper than I could with the available tags.
Since I had to literally build the image url trough shortcode with something like:
http://domain.xyz/multimedia/%5Bimage custom field]
maybe could be useful to be able to add more pattern elements.
Is there a way to do that?
Thanks in advance
Keep up the good work!
Regards
Carlo
Hi Carlo,
You should be able to arrange the HTML output by using the wpp_start, wpp_end, post_start, post_end properties with your shortcodes.
I am aware that this is a little limited at the moment, and I do plan to make this more flexible on future versions. I’ll take a look at that plugin you mentioned, maybe I could grab some ideas from it.
Hi Hector,
thanks for your answer, I will try something… or I will wait until next plugin upgrade!
Anyway here you find how the plugin I was talking about works… hope it could help!
https://github.com/scribu/wp-posts-to-posts/wiki/Actions-and-filters
Thanks again!
Bye
Carlo
Hi Hector,
I’m sorry to bother but I’m trying to do what you said and I’m getting weird results.
I’m trying to load wpp_get_mostpopular function trough a shortcode to easily manage the parameters.
Actually if I try something like this
$content = '<li>'
…
wpp_get_mostpopular(array(
'limit' => 5,
'range' => 'monthly',
'order_by' => 'views',
'post_type' => 'shows',
'stats_views'=> 0,
'stats_comments'=> 0,
'post_start' => $content,
'post_end' => '</li>',
));
but if I try
$content = '<li class="customclass">'
I always get
- …
I tried with <p> and I get the same result.
It works alone but not customized.
How I was supposed to customize my layout?
Thanks and regards mate.
Carlo