raytri
Forum Replies Created
-
Resolving the conflict with the theme fixed the problem. Thank you!
I ran WP Safe Mode with only the Events Manager plugin active, and the problem still occurred.
Update: I hadn’t switched themes in safe mode. When I run it with Twenty Twenty theme, it works fine. So there must be a conflict with the theme. I will investigate further.
- This reply was modified 5 years, 6 months ago by raytri.
Ah, bummer. Thanks for answering that.
Thanks! That did it.
This is why a list of filter and action hooks would be handy…
Thanks, I should have seen that. Also figured out how to do a custom placeholder, so that helps.
Forum: Plugins
In reply to: [The Events Calendar] Can't change "week starts on"Never mind. I just realized your article references general blog settings, not Event Calendar settings. I’m a doofus.
Specifically, in the “Access Types” section, if I check “Editing and Administering Content (admin)”, my child categories disappear from view. If I uncheck that box, I can see them again.
Forum: Plugins
In reply to: [Ultimate Posts Widget] custom field is a date… can I add date format?Never mind. I figured out how to do it with a custom conditional placeholder. Thanks!
Forum: Fixing WordPress
In reply to: WP_Query with custom post type and default categoriesThanks! That did it. Didn’t know the array construct was necessary for such a seemingly straightforward query.
Forum: Plugins
In reply to: [Advanced TinyMCE Configuration] How do you add custom CSS classesOkay, I figured out what the problem was. When using style_formats, you apparently have to specify a selector — there’s no default “apply to everything”.
So the following worked for me:
[ {title: 'Dashed border', selector:'p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,img,table', classes: 'green-border'} ]Forum: Plugins
In reply to: [Advanced TinyMCE Configuration] How do you add custom CSS classesI’d like to second this question. Since upgrading to WordPress 3.9, I can’t get style_formats to work. I do the following:
Option name:
style_formatsValue:
[ {title: 'Dashed border', classes: 'green-border'} ]The “Dashed border” text shows up in the “Formats” dropdown, but it doesn’t apply the “green-border” class to selected elements.
I’ve got good news: the developer got involved, and a fix should be out in an upcoming update.
Meanwhile, we came up with a better fix than the one above.
Instead of this line:
if ( $GLOBALS['wp_query'] !== $wp_query )Use this:
if(!$wp_query -> is_search())This makes the fix work for every sort of search, not just the main Search Everything query.
I figured out how to fix it, but you’ll have to edit the “search-everything.php” plugin file to do so.
On line 257, replace this:
add_filter('posts_search', array(&$this, 'se_search_where'));with this:
add_filter('posts_search', array(&$this, 'se_search_where'),10,2);Then, on line 341, replace the following code at the top of the se_search_where function:
function se_search_where($where) { global $wp_query, $wpdb;with this:
function se_search_where($where, $wp_query) { if ( $GLOBALS['wp_query'] !== $wp_query ) return $search;What this does is say, “If this isn’t the same query created by Search Everything, don’t add the Search Everything “where” clause to the query.”