Questions tagged [plugin-posts-to-posts]

Posts to Posts is a plugin created by Scribu that creates one-to-one relationships between WordPress posts and users. It can be downloaded from the official WordPress Plugin Directory or from GitHub. Updates can be found on his website.

Filter by
Sorted by
Tagged with
1 vote
1 answer
200 views

One-to-many post relationships that are displayed by category (using posts-to-posts plugin)

Urgently need help. Please direct me to the proper forum if necessary, but I very much need to solve this. I'm creating a property management site in which the basic functionality must work like this:...
KreigD's user avatar
  • 107
1 vote
1 answer
126 views

Posts2Posts plugin and wp user frontend connect programmatically

I have a page (custom_post_type_A) with a form (from plugin wp user frontend, create custom_post_type_B) in this page. When (in frontend) user insert value in the form i want an action wordpress for ...
Stefano Cocca's user avatar
1 vote
0 answers
56 views

Render P2P metabox per taxonomy term

I would like to display a Posts to Posts connection registration metabox for each term in a custom taxonomy. The post connection candidates will be split across the metaboxes depending on their term. ...
Chris Montgomery's user avatar
0 votes
1 answer
179 views

Creating connections programmatically with common fields on CPT's

I'm trying to create a programmatic connection between two CPT's that have a common field (id_number). For example: CPT "City": post_name:New York id_number:34 CPT "Color": post_name:Red ...
Python O.o's user avatar
0 votes
0 answers
122 views

How to work with hooks and Posts to posts plugin?

I am using Scribu's Posts to posts plugin to create connections between posts. For example I have custom post type Lesson, and to every lesson one (or more) Teacher can be connected. Connection is ...
Marek's user avatar
  • 887
0 votes
1 answer
374 views

Plugin Post 2 Posts: How to list most connected posts?

I want to list the most connected posts ordered by quantity. ¿Is it possible? ¿Could anyone help me with that? I explain with an example: let's say I have Movies custom post type and an Actors custom ...
EliasNS's user avatar
  • 702
0 votes
2 answers
405 views

Different values for get_author_posts_url and get_the_author (posts 2 posts)

Caveat- I'm not a programmer, I'm a designer that has taught myself basic php/wordpress theming. This is a very specific question, I realize, but I'm hoping the experts can help me find some ...
spiral's user avatar
  • 171
0 votes
1 answer
246 views

Function returning queried meta value based on current post ID

I have written several queries which sums download counts grouped by the post they are associated with, and other relations. They work great for exporting to CSV and other uses outside of WordPress, ...
rootl's user avatar
  • 53
2 votes
1 answer
504 views

Nested CPT URLs + Posts 2 Posts

I'm working on a client site that has two different custom post types: artist and portfolio. I'm using the posts-to-posts plugin to create a relationship from each artist to their portfolios. Artist ...
brooklynjb's user avatar
0 votes
1 answer
160 views

Combine the results of two loops [closed]

I currently have these 2 loops running on a single page $related = p2p_type( 'artist_to_song' )->my_get_related( get_queried_object() ); $features = p2p_type( 'song_to_feature' )->...
SBM's user avatar
  • 72
3 votes
1 answer
593 views

Ordering Post 2 Post admin meta box by meta from CPT

I've just started using Posts 2 Posts (brilliant plugin by the way) in combination with a custom post type called "Artist" and the WP Event Manager Plugin. My aim is to use P2P to link Artists to ...
Sonoman's user avatar
  • 155
3 votes
2 answers
4k views

posts2posts query using connected_items array issue [closed]

My setup is as follows I hava a custom post type named 'events' and a custom post type named 'genres' which I link with scribu's Posts2Posts plugin. Each event can have multiple genres linked to it. ...
eskimo's user avatar
  • 446
1 vote
0 answers
185 views

Post 2 Post Site Search

I'm trying to filter search terms bases on categorisation created by posts 2 posts. I'm using the generic site search and then I've created a search filter function my_filter_the_search($query){ ...
Brob's user avatar
  • 271
1 vote
1 answer
823 views

Post 2 Post: Getting connected 'person' from post author

I am using the amazing P2P plugin (many thanks Scribu!) and I am having an issue that is probably right in front of my face but I just can't see. I have a 'People' as CPT and I have connected that ...
WP Loopy's user avatar
3 votes
1 answer
542 views

each_connected in wp_user_query with Scribu's Posts to Posts Plugin - Alternative method? [closed]

I have been using Scribu's Posts to Posts plugin for some time, and it has served me well. I have read the full wiki and issues list, but can't find any definitive answer if there is a clean way to ...
GhostToast's user avatar
  • 4,576
4 votes
6 answers
3k views

Creating relationships between multiple content types [closed]

I'm working on a site where there are multiple content types in addition to the built-in ones (see list below). I'd like to establish the ability to mark related content in any direction, from any ...
Grant Palin's user avatar
  • 1,049
3 votes
2 answers
419 views

Allow User to Edit Page Based on their Email

Quick Info I am using the Posts 2 Posts plugin in order to create a relation between Teachers and the Classes they teach. The teacher's page is a custom post type of faculty in which teachers are ...
rebz's user avatar
  • 131
0 votes
1 answer
95 views

Registering dependency on 'wp-posts-to-posts' from a custom plugin [closed]

I have custom plugin which registers multiple CPT's and i want to reuse the features of wp-posts-to-posts to define relationships. I'm just wondering what is the correct/best way to include the api....
emeraldjava's user avatar
0 votes
1 answer
1k views

Adding a Custom Field to be used by Posts 2 Posts

I'm trying using Gravity Forms and allow for a user to submit a post to my CPT, and choose an optional Connected Post Type. I have two CPTs, CPT1 and CPT2. When they're viewing my form for creating ...
Jon Dingman's user avatar
2 votes
2 answers
1k views

Connecting a taxonomy with a post type

The setup: custom post type of 'attorney' custom taxonomy of 'specialty', which is registered against the 'attorney' post type custom post type of 'practice-area' For every specialty, there is a ...
Travis Northcutt's user avatar
0 votes
1 answer
163 views

Posts 2 Posts Plugin : error message everywhere [closed]

Just upgraded to the last version of Posts 2 Posts plugin (I have the last WP version too) and I have the following error message on every dashboard page : « Warning: Connection types without a 'name'...
drake035's user avatar
  • 1,125
0 votes
1 answer
1k views

Posts 2 Posts: query connected -- orderby problem

Using Posts 2 Posts plugin I've created 'piece', 'person' and 'collection' custom post types: any piece may be connected to person (with roles 'author', 'conductor' etc) and collection. Now the ...
brownian's user avatar
  • 236
0 votes
2 answers
260 views

Posts 2 Posts plugin: best way to change connection field value?

I have started to use posts-to-posts plugin by scribu, and now I need to change vaues for connection fields. Particularly, I've created 'person' and 'piece', connection 'role' in between and defined ...
brownian's user avatar
  • 236
0 votes
1 answer
196 views

How to show multiple attachements together with Scribu's Posts 2 Posts connector?

I am using Scribu's Posts 2 Posts plugin to connect posts with small galleries attached to an album post type. Everything works great, except that I cannot figure out how to merge the attachments to ...
MTT's user avatar
  • 3,526
0 votes
1 answer
196 views

Plugin Posts 2 Posts : problems with the 'position' field

I must be a bit slow, I still have problems with the position field in the Posts-2-Posts plugin. If I set a position to each connection in a given post (say 1, 2 and 3) I don't understand how to ...
Mike's user avatar
  • 377
1 vote
1 answer
861 views

[Plugin: Posts 2 Posts] Controling the display order of connections

My question resembles one I asked before: [Plugin: Posts 2 Posts] Changing display order of connections But now I want to display the connection in the SAME order I created them ! That is, if I ...
Mike's user avatar
  • 377
3 votes
1 answer
1k views

How to programmatically create a connection with [Plugin: Posts 2 Posts] on cpt publish?

How can I programmatically create a connection between one custom post type, cpt, (with post id known) to another on cpt on publish? I am using VoodooPress's front-end posting method to publish a ...
MTT's user avatar
  • 3,526
2 votes
3 answers
321 views

display order of connections

Is there a way to control the order in which connections are displayed ? I've got a Articles => Books connection so that in each article I can quote a number of books. I want to display the quoted ...
Mike's user avatar
  • 377
2 votes
1 answer
1k views

[Plugin: Posts 2 Posts] How does it work?

I recently discovered Scribu's Posts 2 Posts plugin, which seems to be exactly what I was looking for in order to connect pages and posts for a big editorial website. But I cannot get it to work, ...
mike23's user avatar
  • 5,951
5 votes
1 answer
4k views

How Do I Use The Wordpress Plugin Posts 2 Posts by Scribu?

I have a Wordpress site that relies on relationships quite heavily. It's a record label website where artists can be related to tours, reviews, album releases and store items throughout the site. I ...
Dwayne Charrington's user avatar
0 votes
1 answer
2k views

Getting Post ID from slug during init

I am trying to add a url rewrite rule that finds any posts that are connected to the current post (using Posts 2 Posts by scribu). It's tied into the WP Query object, so all I have to do is pass ...
Derek Perkins's user avatar