econofast
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Add Mime Types] deprecated functionThis can be fixed by changing the line:
load_plugin_textdomain('wp-add-mime-types', '/'.str_replace(ABSPATH, '', dirname(__FILE__)) . '/lang/');
to:
load_plugin_textdomain('wp-add-mime-types', false, '/'.str_replace(ABSPATH, '', dirname(__FILE__)) . '/lang/');
It keeps those features on the root site, but at least for Captcha, no-go on sub-sites. I haven’t tested the attempts limit yet. But at least it lets you rename the url.
@bakuyu06: I just came up with a workaround. Disable the rename login feature in AIO and install the plugin Rename wp-login.php, located here: https://www.ads-software.com/plugins/rename-wp-login/
Use that and it will rename the logins for all of your subsites. Woohoo!
Is there a workaround until then? Can I completely block access to the subsites login page? All of my users have access to all subsites, so they only need the single (root site) login.
Forum: Plugins
In reply to: [Posts 2 Posts] nested connections and future postsI had almost the exact same issue (even down to the details of using speaker/session/event… ok, I used timeslot instead of event).
Give this a whirl. When you call p2p_register_connection_type in your functions, add a ‘from_query_vars’ => array(‘post_status’ => ‘any’) to it.
Here’s my code so you can see where it goes:
p2p_register_connection_type( array( 'name' => 'sessions_to_speakers', 'from' => 'session', 'to' => 'speaker', 'sortable' => 'any', 'title' => array( 'from' => 'Speakers', 'to' => 'Sessions' ), 'admin_column' => 'any', 'from_query_vars' => array('post_status' => 'any') ) );
Forum: Plugins
In reply to: [Posts 2 Posts] resetting posts while nestedI figured it out – you have answered it already!
Forum: Plugins
In reply to: [Invite Anyone] [Plugin: Invite Anyone] Settings not savedMore info:
I see that the changes ARE being saved in the database, just not showing up under admin options.Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] triple nesting, connections of draftsFor anyone else dealing with something like this:
It turns out that my code above is correct (aside from perhaps some div nesting mistakes due to hasty simplifying), and the culprit isn’t related to the extra connection nesting.
In order to show items that are connected to non-published posts, you need to add the following to your p2p_register_connection_type:
'from_query_vars' => array('post_status' => 'any')
It’s just that simple!Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] draft/other statuses in shortcode?Okeydoke, I have this partly working. I can show all of my sessions, and the speakers that are connected will show up, whether live or draft, but ONLY on published sessions.
How can I pull up the speakers for draft sessions?
Right now, my each_connected looks like:
p2p_type( 'sessions_to_speakers' )->each_connected( $post->sessions, array('post_status' => 'any'), 'speakers' );
Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] draft/other statuses in shortcode?You’re probably right. It’s probably a very low use case scenario. I did end up doing it via PHP, and I think anyone who has a similar application can probably handle it the same way.
Thanks for considering it though. I continue to be amazed by how many times I come across your postings all over the web to solve my issues!Forum: Plugins
In reply to: [Posts 2 Posts] [Plugin: Posts 2 Posts] Still missing data after 1.4.1I am seeing the same problem – I haven’t checked with debug on, but rolling back to 1.3 shows all of my connections on front end and admin, while 1.4/1.4.1 both only show them on the admin side.