scribu
Forum Replies Created
-
Forum: Plugins
In reply to: [Posts 2 Posts] Is P2P the best option for me?Let’s take cities and places: a city-to-place relationship is one-to-many because a city can have multiple places to visit, but a place can only be in one city.
If that was all, you’d make “place” a custom post type and “city” a custom taxonomy. But, if you want to show information about both cities and places, you should make them custom post types and use P2P to connect them.
Also, there’s nothing wrong with using P2P for some things and custom taxonomies for other things.
Forum: Plugins
In reply to: [Posts 2 Posts] Display Posts Connected to Current UserJust replace
get_posts(withnew WP_Query(.Also, instead of calling
get_currentuserinfo(), just use:$user = wp_get_current_user();Forum: Plugins
In reply to: [Smarter Navigation] Caching Issue?You could try calling
Smarter_Navigation::clear_cookie(), but I’m not sure it’ll work.Forum: Plugins
In reply to: [Smarter Navigation] Caching Issue?You could add this line to your
functions.phpfile:add_filter( 'smarter_nav_clear', 'is_front_page' );It will remove the cookie when a user hits the front page.
Forum: Plugins
In reply to: [scbFramework] Table type support in scb_install_table()Done: https://github.com/scribu/wp-scb-framework/issues/27
Example usage:
scb_install_table( 'your_table', $columns, array( 'table_options' => 'ENGINE InnoDB' ) );Forum: Plugins
In reply to: [Posts 2 Posts] Error in Fresh Install when adding COnnectionsIn P2P 1.5.2, line 67 of box.js looks like this:
});So, you were probably using the development version (currently 1.6-alpha).
Forum: Plugins
In reply to: [Front-end Editor] Change of labelsForum: Plugins
In reply to: [Front-end Editor] Business Directory Pluginthey don’t support custom post types
Yes, it does; it says so explicitly:
posts (including pages and custom post types)
Forum: Plugins
In reply to: [Posts 2 Posts] Complex Configuration, Need AdviceYou could create a single connection type, with a ‘primary’ custom field defined. The problem would be that the UI (a checkbox) would allow you to have multiple “primary” connections per item.
You could define 2 connection types and use the built-in ‘cardinality’ setting for one of them. In that case, you could have a person be the ‘primary’, while not necessarily having a regular ‘many-to-many’ connection, which might or might not be acceptable.
Forum: Plugins
In reply to: [Posts 2 Posts] Connections don't show up in the admin panelYou should follow the WordPress Plugin Troubleshooting Flowchart.
Forum: Plugins
In reply to: [Front-end Editor] FEE & RevisionaryI have never used Revisionary. I assume it’s doing some additional capability checks which clash with FEE.
I would suggest asking the author of Revisionary about this as well.
Forum: Plugins
In reply to: [Smarter Navigation] Not working with custom taxonomiesIt doesn’t do any special checks for custom taxonomies. It just always saves the current query (unless it’s on a singular page):
https://github.com/scribu/wp-smarter-navigation/blob/master/main.php#L24-26
Forum: Plugins
In reply to: [Query Multiple Taxonomies] list view does not update correctlyscribu: I think if you can implement AND/OR selection on per widget basis it will make the plugin really powerful.
I agree, but I handed over plugin development/maintenance to DrewAPicture, so it’s up to him.
Of course, if you can open a pull request over at https://github.com/scribu/wp-query-multiple-taxonomies I’m sure it would help speed things along. 😉
Forum: Plugins
In reply to: [Query Multiple Taxonomies] list view does not update correctlyYes, I have noticed several people getting confused by the fact that ‘checkbox’ mode uses a different operator than ‘list’ and ‘radio’ modes.
Forum: Plugins
In reply to: [Smarter Navigation] Not working with custom taxonomiesI guess I wasn’t clear in the last message; let me try again:
“I really couldn’t tell you what’s going on, without looking at your code”… and I really don’t have time to dig through what sounds like a complex codebase. Sorry.