hktang
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Menu items disappeared and can’t be savedI found a reference here that explains the cause of the problem: https://wordpress.stackexchange.com/a/52408/47947
Because “Nav menus are also generated by a WP_Query”, running
$query->set
filters out the menu items. The solution is to add a condition to limit the query to the “main query” only. For example:if ($query->is_main_query() && $query->is_archive()) { // set up main query }
Forum: Fixing WordPress
In reply to: Menu items disappeared and can’t be savedHi @orchestrated,
Thank you so much for sharing this information! It has been bugging me since WP 6.0 was released. I have only one line in the pre_get_posts hook. Removing it fixes the issue.
$query->set( ‘post_type’, array( ‘my-custom-type’ ) );
Any idea why this caused the issue? They seem completely unrelated.
Hi, I was trying to show in the metadata only guest authors and hence need the same test.
I tried the below code and it works.
coauthors
is supplied by the plugin to output the coauthors as text.$poster = get_the_author(); $author = coauthors( null, null, null, null, false ); if ( $poster != $author ) { //your stuff here }
hope this helps.
Forum: Plugins
In reply to: [WP UI - Tabs, Accordions, Sliders] UI does not show up in the TinyMCESame problem here for WordPress 3.9.1 with the latest WP UI. Although of course everything just works and you can still manually add short codes to create tabs…
Forum: Plugins
In reply to: [Event Calendar] Conflict with Superfish menu?Dear Eran, thank you so much, really appreciate it! I wonder if there’s a way to list the calendar as a table like this https://www.wcrp-climate.org/calendar2011.shtml ? Or could you shed me some light on how to tweak the [calendar] output. I have some basic knowledge of PHP and JavaScript …
Forum: Plugins
In reply to: [Event Calendar] Conflict with Superfish menu?Hi it’s part of a theme call Arras. we make a lot of changes but the library and js files are untouched.
Best X
Forum: Plugins
In reply to: [Event Calendar] Conflict with Superfish menu?Hi Eran,
Oh I just manually hard-coded a reference to the latest jQuery. If I remove it, the error will show.
The conflict with Superfish, I think, is that when I turn on the calendar, the menu will not show animation, and also the dropdown indicator (little triangle to the right of a menu item that has a sub ul element) won’t show up.
I removed the reference to jQuery and
Hope this information helps…X
Forum: Plugins
In reply to: [Event Calendar] Conflict with Superfish menu?Hi Eran, it’s apngcr dot org
Thank you!