Patrick Daly
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Db Abstraction] [Plugin: WP Db Abstraction] Not showing postsI’m not sure if this fix caused the problem, but pagination is not working for. Did you have similar results?
Forum: Plugins
In reply to: [WP Db Abstraction] [Plugin: WP Db Abstraction] Not showing postsThank you for the fix!
Forum: Plugins
In reply to: [WP Db Abstraction] WP Db Abstraction brokenExperiencing the same issue.
Use this link instead: https://pastebin.com/gYNpHqwt
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Get connected posts by status?wp_list_pluck
wasn’t working for me, but I ended up using this method.In English, first I query for all the photos that the current users has guessed. I pull out all of the ‘p2p_to’ IDs pointing at guess ID. Then, I query for all guesses, excluding all the IDs from the previous query.
Thanks for your help, man.
[33 lines of code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Get connected posts by status?I didn’t see your last reply before I submitted. I think your method might work, so let me try it out.
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Get connected posts by status?Yeah, you understand it correctly.
My site (guessages.com) uses 2 custom post types, “guess” and “photo”. Users guess the age of photos that other users have submitted. Your plugin connects the guesses to the photos.
Every photo and every guess submitted I create as private posts, so they’re only available to the logged in user unless I override that.
When a user submits their photos they can choose to make it active, putting it in the pool of photos to be guessed by everyone, but anytime they want to revert and make it inaccessible I have to change the post status. As the plugin stands, I can’t differentiate between whether to display a photo in the main pool or not (without using meta or custom SQL, of course).
I guess the tricky thing for you to decide is if you want to add something like this and where to draw the line. You could create almost every parameter WP_Query offers prefaced by “connected_”. I could also stand to benefit from “connected_author”. When querying for guesses that the current logged in user made I have to use meta, like so:
'connected_meta' => array( array( 'key' => 'guesser_id', 'value' => $current_user->ID, 'compare' => '=', 'type' => 'numeric' ) )
… it would be much easier to use this:
'connected_author' => $current_user->ID
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Get connected posts by status?Not grouped, but just like any other WP query using ‘post_status’.
$connected = new WP_Query( array( 'connected_type' => 'my_connection_name', 'connected_items' => 'any', 'connected_direction' => 'from', 'post_type' => 'my_post_type' ));
If I used ‘post_status’ in that query it would get the status for ‘my_post_type’ posts, but I want to get the status of the connected posts and only show the ‘private’ posts.
Forum: Plugins
In reply to: [Co-Authors Plus] Multiple authors can't edit pagesYou’re sure this isn’t stemming from
add_coauthor_cap()
?Even though the post type object is being set as page, post, custom post type, etc. it still looks like its only receiving
post
capabilities:$post_type_object->cap->edit_post
Forum: Plugins
In reply to: [Co-Authors Plus] Multiple authors can't edit pagesI’ve tested with all plugins deactivated except this one.
Also, this is a network site.
Forum: Plugins
In reply to: [Co-Authors Plus] Multiple authors can't edit pagesTried this out and nothing seemed to change. I also tried editing
co-authors-plus.php
line 79 to:register_taxonomy( $this->coauthor_taxonomy, array( 'post', 'page' ), array('hierarchical' => false, 'update_count_callback' => '_update_post_term_count', 'label' => false, 'query_var' => false, 'rewrite' => false, 'sort' => true, 'show_ui' => true ) );
… no luck either way.
For further clarification, I’ve assigned 4 contributors to a single page. Contributors have
edit_pages
andedit_published_pages
capabilities, among others.edit_others_pages
isn’t a reasonable option for the site I’m running this on.Still, only the first listed author is able to edit anything.
The best implementation would be to offer a submit button OR use an Ajax query to automatically update the query on every checkbox change. Integrating Ajax with a WP query doesn’t seem very simple though.
Has anyone revisted this?
Just to further clarify, we’re looking for an option to replace the hyperlinks in the “list” form with checkboxes. So the widget options for Mode would be “lists, dropdowns, checkboxes”.
The checkboxes mode would output similarly to the lists mode, but instead of plus and minus signs it would use checkboxes.
I should have been more specific. What I’m looking for is a global network search. Content from example.com, aaa.example.com, and bbb.example.com would all be queried together. It doesn’t appear this is workable though. Add that ability and this plugin would finally be the search plugin to rule them all.
Seeing the same thing. It might be useful for a history of plugins, but it’d be cool if there were a “Show current plugins” vs “Show history of plugins” stats views.