carletto0282
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] shortcodes to display relationshipsYep
I finally solve my issue,
thanks Scribu and Francois…I really appreciate your help and your work!
Regards
CarloHi 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
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
CarloActually 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:
https://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!
RegardsCarlo
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Simple list output modeHi guys,
while waiting for your answer I made some attempts by myself trying to apply the suggestions you put on the wiki here
https://github.com/scribu/wp-posts-to-posts/wiki/Actions-and-filters
I copy the function to the function.php of my theme and then I made a template file named p2p-list-produced_by.php since I create a connection between movies and producers (both custom post types)
Here is the deal:
– if I use the standard shortcode
[p2p_connected type=produced_by mode=ul]
or even
[p2p_connected type=posts_to_pages]
I get the right result displaying the link of the connected producer but I have some problem with the standard layout because I need a simple link list like
<a href="xxx">xxx</a>, <a href="xxx">xxx</a>, <a href="xxx">xxx</a>
instead of
<ul><li><a href="xxx">xxx</a></li></ul>
…so I try to edit the shortcode to use my template file.
My template file contains just
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
And the shortcode I used was
[p2p_connected type=produced_by mode=list]
But all I get was:
<a href=""></a>
Here comes the nice thing: while I’m using WP-Types and Views to manage custom post types and layouts I tried to use some shortcode in the template file
<a href="<?php echo do_shortcode('[wpv-post-url]'); ?>"><?php echo do_shortcode('[wpv-post-url]'); ?></a>
But the weird thing is that what I get in that case is the right name of the producers with no url!!!
Do you have any suggestion?
Thanks guys for all your great work with this plugin I hope not to botherregards
CarloForum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] shortcodes to display relationshipsHi guys,
what if I’d like to get a simple link list?
I mean a list of the connected post not formatted in an ordered/unordered list but just a list of comma-separated links?
I thought it’s something about the “mode” attribute in the shortcode but I can’t find any detailed information about it on the plugin’s home page.
Can you help me?
Thanks
Regards
CarloHi guys,
any news about this release?
I’m really excited about the idea of getting this great plugin working with custom post types…Thanks again for your great effort!
ByeCarlo
Hi guys instead of simply uninstall the plugin it could be useful to solve the permission problem!
I hope this could help… it looks really simple.
https://eckstein.id.au/8510/wordpress/intense-debate-problem/
Just log with the intense debate account in the settings page of the plugin!
Hope it helps!
Bye guys,
CarlettoSame problem with multi-day events.
Posting just to get warned about any news.Thanks
CarlettoForum: Fixing WordPress
In reply to: [Plugin: All In One Event Calendar] How to add shortcode manuallyGreat news guys!
Really great news!
Hope for the best of it!
Thank you everybody.
I’ll give you some feedback on it as soon as possible!
ByeForum: Fixing WordPress
In reply to: [Plugin: All In One Event Calendar] How to add shortcode manuallyGreat man… I’ll give it a try.
Hope yani.iliev take a look on your work and give a feedback!
Thanks anyway!
Bye
CarloForum: Fixing WordPress
In reply to: [Plugin: All In One Event Calendar] How to add shortcode manuallyHi mate… I hope you have solve the tricky issue but can you please add the code in pastebin?
We cannot see it!
Thanks
ByeForum: Fixing WordPress
In reply to: Error with custom queries and custom call in a templateThanks for your suggestion…
but it doesn’t work…
Forum: Fixing WordPress
In reply to: Error with custom queries and custom call in a templateI use php widget and put that code inside
<?php rewind_posts(); if (function_exists(loop_news')) { loop_news(); } ?>
than in function.php I had
I reset it at the end, because after that I got another custom loop to load post of another custom post type.
Thanks
Hi Yani,
thank you very much for your help.
Actually I’m on another task.I will give a check on your tips as soon as possible.
Hope they could be useful as they seem to be!
Thanks againRegards
Carletto