clariner
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts 2 Posts] Maximum number of connections?I have added an example to the posts-to-posts wiki.
https://github.com/scribu/wp-posts-to-posts/wiki/Admin-box-display
Forum: Plugins
In reply to: [Posts 2 Posts] Adding Support For Buddypress GroupsHi Scribu,
Thanks for the points, I have sent a pull request which cover all the additional files I have created.
I haven’t really started on the logic of P2P_Side_Bpgroup but looks like I need to covert the passed arguments so they work with buddypress’s get group function.
I’ll await your pull request comments.
Forum: Plugins
In reply to: [Posts 2 Posts] Admin connection search boxWhat version of worpdress you running and what version of posts 2 posts?
Forum: Plugins
In reply to: [Posts 2 Posts] Connections between posts don't show up in dashboardHave a look here about extending you register connection to include admin box information
https://github.com/scribu/wp-posts-to-posts/wiki/Admin-box-display
Forum: Plugins
In reply to: [Posts 2 Posts] Manual Post Relationship Via FrontenI believe there is a plugin for buddy forms which will allow front end adding of connections but I think puffy press is required.
Forum: Plugins
In reply to: [Posts 2 Posts] Change Permalinks StructureWhat your wanting is possible, you need to hook into one of the permalink hooks and have some URL rewrite rules.
If you are still needing this I can post a code sample if you want?
Forum: Plugins
In reply to: [Posts 2 Posts] Connections between posts don't show up in dashboardPlease could you post how you are registering the connections?
Are you getting any JavaScript errors in the browser?
Forum: Plugins
In reply to: [Posts 2 Posts] Try to echo 2 relationships fields…Your code is doing what it should be doing.
Where you have $post->post_title you the need to get the post information about schedule etc.
Have a look here https://github.com/scribu/wp-posts-to-posts/wiki/Connection-metadata
Forum: Plugins
In reply to: [Posts 2 Posts] Maximum number of connections?If you want to limit the number of connections that can be added in the admin screen you can do this with JavaScript.
We watch the number of row in the table listing all the connects and when it hits a certain value we hide the add button.
If this is what you want I can post an example of how to do it?
Forum: Plugins
In reply to: [Posts 2 Posts] each_connectedAre you wanting to limit duplicate connection or just the display of duplicate connections?
if its the forma the you can do the following
p2p_register_connection_type( array(
…
‘duplicate_connections’ => false
) );This will stop the creation of duplication connections.
Forum: Plugins
In reply to: [Posts 2 Posts] display dateIt is possible you need to hook into the php_shortcode_html hook (https://github.com/scribu/wp-posts-to-posts/wiki/Actions-and-filters#p2p_widget_html)
Forum: Plugins
In reply to: [Posts 2 Posts] Widget Posts 2 PostsHi bierleeuw.
It is possible you need to hook into the php_widget_html (https://github.com/scribu/wp-posts-to-posts/wiki/Actions-and-filters#p2p_widget_html)
This allows you to create a template and display what you want including images.
Forum: Plugins
In reply to: [Posts 2 Posts] Get Connections from a post, outside of the loopThe issue is that you are looking for connection on get_queried_object() which hold the id of the current posts, in your case the translation which doesn’t have any connections.
What you would need to use is
$beauty_connected = new WP_Query( array( 'connected_type' => 'stores_to_beauty_brands', 'connected_items' => $translated_id, 'orderby' => 'title', 'order' => 'asc', 'nopaging' => true, ) );
if $translated_id in null on your english post then set it to get_queried_object().
Forum: Plugins
In reply to: [Posts 2 Posts] Hook into plugins javascriptThe easiest way to do this is create a javascript file that watchs the connection div and see if it has been modified.
$(‘div[data-p2p_type=”[CONNECTION_NAME]”]’).bind(“DOMSubtreeModified”, function() {
var link = $(‘div[data-p2p_type=”[CONNECTION_NAME]”]”] > table.p2p-connections >tbody > tr > td.p2p-col-title > a ).attr(‘href’);
});
link will contain the permalink for the record from which you can get the post_id.
You can then use the post id and get the record via admin-ajax.php
(something like this https://designmodo.com/responsive-wordpress-plugin/) and then add some javascript to populate the required fields in your current page.It would also bee good to have
- mycred as a payment gateway for Event Manager.
- Reconciliation Report – If used with the bank feature it will check that every point within the system has been allocated correctly