leggo-my-eggo
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] New Relic Framework not setI got the framework part of this worked out. But I’m still seeing the permissions error.
Forum: Plugins
In reply to: [Post Types Order] Illegal offset type in isset or emptyAfter some investigation, I’ve determined that advanced-post-types-order is not aware of post_type values as arrays. The Posts 2 Posts plugin sometimes passes these as arrays, and the WordPress spec allows for arrays. In my case, simply adding a
'post_type' => 'document'
to my query in my widgets.php file has fixed the problem.Forum: Plugins
In reply to: [WP Document Revisions] post_type in arraySorry, I just realized this was a query I was generating through the posts-to-posts plugin. Resolved.
Forum: Plugins
In reply to: [Post Types Order] Illegal offset type in isset or emptyI think you’ve misunderstood the stack trace. Those are not all errors. The error was thrown twice, once in
/wp-includes/widgets.php
and once in/wp-content/plugins/advanced-post-types-order/advanced-post-types-order.php
. I’ll email for help, thank you.Forum: Plugins
In reply to: [Post Types Order] Illegal offset type in isset or emptyOh, and lines 294-296 in widgets.php is as follows:
if ( 'artist' !== get_post_type() ) return; $connected_documents = new WP_Query( array( 'connected_type' => 'artist_to_document', 'connected_items' => get_queried_object(), 'nopaging' => true, 'orderby' => 'menu_order', 'order' => 'ASC' ) );
Which is a query to pull a Posts 2 Posts connection for my custom post type, “artist”.
Forum: Plugins
In reply to: [Firelight Lightbox] [Plugin: Easy FancyBox] Turn off fancybox for mobileThis seems to be working fine, thank you.
And I’m intrigued by some of what I see in the dev version! Any chance fancybox 2 is coming?
Forum: Plugins
In reply to: [Firelight Lightbox] [Plugin: Easy FancyBox] Turn off fancybox for mobile@ravanh, wow, thank you, this is fantastic. I will test at my first opportunity, which is probably tomorrow, and let you know what I find.
I am using Gravity Forms. Can you explain what you mean about the gform_post_render event? Do you mean that easy_fancybox fires on this event? Or that gforms itself will need to be disabled for mobile?
Forum: Plugins
In reply to: [Firelight Lightbox] [Plugin: Easy FancyBox] Turn off fancybox for mobileThanks for the answer. Unfortunately, neither of these work for me, because I have other jQuery elements set to run on the ready event, which I need to work on touch devices.
Sorry, of course.
This used to work, but now causes the problem I described:
$connected = p2p_type( 'performances_to_reviews' )->get_connected( get_queried_object_id() ); p2p_list_posts( $connected, array( 'before_list' => '<aside class="related related-reviews"><h3>Related reviews</h3><ul>', 'after_list' => '</ul></aside>', 'before_item' => '<li>', 'after_item' => '</li>', ) );
This works:
$connected = p2p_type( 'performances_to_reviews' )->get_connected( get_queried_object_id() ); if ( $connected->have_posts() ) : ?> <aside class="related related-reviews"> <h3>Related reviews</h3> <ul> <?php while ( $connected->have_posts() ) : $connected->the_post(); ?> <li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> <?php endwhile; ?> </ul> </aside> <?php wp_reset_postdata(); endif;
Oh, and the definition looks like this:
p2p_register_connection_type( array( 'name' => 'performances_to_reviews', 'from' => 'performance', 'to' => 'review', 'cardinality' => 'one-to-many' ) );
Ron, hm. I guess not, although I DO see the “Edit This” link.
This works perfectly now, thank you!
Yes, it works fine. So, if I go to https://customdomainname.com/wp-admin, I will be redirected to the login screen for https://subdomain.maindomain.com.
Is that what you mean?
Remote login is enabled. The first four domain options are checked, the last one unchecked.
Bump. Any suggestions about #2 in the followup above? I can’t use this while it’s returning posts which are connected to posts which are in the trash.
Ah, thank you, Ron. So, does this mean that if I have my front-end mapped to a custom domain, while my back-end is at the default subdomain, that I’m out of luck? Because I can’t figure out how to log into the mapped domain when the login page is directed at the default subdomain. Am I missing something obvious?