red5
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: WordPress Custom Widget Save Multiple Attributes?S.Walsh answered this on stackOverflow. When defining my attributes in block.json, I had duplicate selectors (they were both <div>). They need to be unique. Do this by giving them a class like this:
"attributes": { "theNotes": { "type": "string", "source": "text", "selector": "div.the-notes", // a div with the className "the-notes" "default": "" }, "theContact": { "type": "string", "source": "text", "selector": "div.the-contact", // a div with the className "the-contact" "default": "" } }
See S.Walsh’s explanation. The unique classes also need to be referenced in the edit.js and save.js.
I found a workaround using PHP template files with my Lazy Blocks. Since I’m using my own custom color pallet in Gutenberg, I can return that color pallet as an array in my template with $myvar = get_theme_support( ‘editor-color-palette’ );
I can then use a loop to compare the hex color that Lazy is returning with my array to get the corresponding class value.
I’m having the same problem on a new development site. If I enable the latest Lazy Blocks plugin, then I am unable to add any blocks to the Widget area. The only other plugin I have installed is Akismet and it is de-activated.
If I deactivate Lazy Blocks, then my Widget area works.
Forum: Plugins
In reply to: [Conditional Widgets] Conditional Widgets after WordPress 5.8@madtownlems:
I’ve been using your plugin for about a decade and it has improved work life greatly. I’ll be sad to see it phased out. The functionality seems like such an obvious, logical feature. I always wondered why the options weren’t included in WP core.Forum: Plugins
In reply to: [Conditional Widgets] Plugin settings hidden in WP 4.9.4I posted this too soon. I think my theme is causing the issue.
Forum: Plugins
In reply to: [Contact Form 7] Hidden field in CF7buzztone: i have a dumb question. how would i then get that hidden value included in the email that cf7 sends?
Forum: Fixing WordPress
In reply to: query_posts Order by Custom FieldI completely agree. I was hired to work on code someone else wrote. FWIW, here’s how I got it to function, where I sort by “list_order.”
query_posts($query_string . &meta_type=NUMERIC&orderby=meta_value_num&meta_key=list_order
Forum: Plugins
In reply to: Plugins won't updateWere you able to fix the problem?
my customers and i have seen this same error when wordpress browser cookies have a conflict in Chrome. I log out of wordpress, empty my cache (including cookies), and (sometimes) have to restart Chrome. Then I restart chrome and log back into wordpress. after that, i’m able to update.
Forum: Plugins
In reply to: W3 Total Cache breaking Worppress Playlistdisabling minify html, but leaving minify for css and js fixed my issue.
Forum: Plugins
In reply to: W3 Total Cache breaking Worppress PlaylistI’ve got the same issue with a variant of the 2012 theme. if i enable w3 total cache, my playlist breaks. if i disable it, the playlist works. my customer wants to keep w3, so advice is welcome.
Yes. Instead of querying post_type and calling the_excerpt(), I’ve had better results using em_get_events() and then using shortcodes to return the information that I want ordered by event_start_date. The result is a string. If knew how to make the result an array, instead, then all would be well. This is what returns the string:
$evt = em_get_events( array('limit'=>10,'orderby'=>'event_start_date,event_name', 'format'=>'#M #j #_EVENTLINK #_EVENTEXCERPT{26}') );
I can explode the string into an array and achieve my goal, but starting with an array would be cleaner.
Photocrati/Cais,
Thank you for your time. It looks like the plugin has started working. I’m thinking my version of PHP needed to be upgraded. The real issue seemed to have been that the plugin couldn’t create the thumbnails. I’ll talk to my host and post any helpful information I get. I can’t publish a link, yet, because the firewall is blocking outside traffic. I will do more testing and then mark the topic resolved.Forum: Plugins
In reply to: [Conditional Widgets] Integration with WPMLWe use Conditional Widgets on all our WP sites. We also could really use integration with WPML.
Forum: Plugins
In reply to: Add Custom RSS WidgetYes, I used the tutorial. It’s very good. Thank you for the link. My modified version of the core widget still doesn’t seem to be saving data entered into the fields.
Just like the original, my widget does this on the update func:
return wp_widget_rss_process( $new_instance, $testurl );I wonder if I’m not supposed to try using funcs from the core. I’ll do some more troubleshooting and reading.
Forum: Plugins
In reply to: Add Custom RSS Widgetit’s here:
https://www.rssmix.com/u/3796218/rss.xmlit works in a core rss widget, just not my version. the only changes i made were to the html styling, class name, construct name