MelissaH
Forum Replies Created
-
Forum: Developing with WordPress
In reply to: Access blockProps from render callbackThis may not be the best method but my workaround is to create and save the class name and other block props as an attribute.
I’m hoping that someone else has a better answer!Forum: Developing with WordPress
In reply to: Creating a new menu itemYour latest posts will show up under the “Posts” menu item same goes with the Category — they’re not static (click the down arrow to reveal the pages/categories).
Now if you want the “Custom Posts” and “Custom Categories” those correspond to a new “post type.” For example, if you wanted to create a new post type called “fruits” and then custom categories (“citrus”, “stone fruit”, “tropical”, etc.) those will show up as drop-down options under “Add Menu Items.”
You can read about it here:
https://developer.wordpress.org/plugins/post-types/registering-custom-post-types/Forum: Developing with WordPress
In reply to: register_block_type – no block available in block editorCreating a block requires more than registering it from PHP. You can learn more about developing a block here:
https://developer.wordpress.org/block-editor/getting-started/
You will need some knowledge of Javascript (React, in particular) and JSON. If you know how to use node, WordPress has a scaffolding with @wordpress/create-block.
I won’t go into too much detail since the developer resource will cover a lot. But basically, it works like this:
block.json + javascript file(s) – contains everything needed to create the block
Register the block via PHP register_block_type(), referencing the main javascript block file.Good luck on your journey in developing blocks!!
That worked! Thank you!
Never mind! I just saw it was a theme issue!
Forum: Plugins
In reply to: [Simple Locator] Use my LocationYou need to have an https (secure server) connection to use the “use my location” feature.
Forum: Plugins
In reply to: [Smart Slider 3] Cannot Add New SlideI found the culprit. I should have done this before posting! There was a conflict with another plugin (Forget About Shortcode Buttons). Thank you for the quick response!
Forum: Plugins
In reply to: [Constant Contact Forms] Capturing SpamSorry for the delay in replying. I would get anywhere from 1 to 12 spam emails per day. All either have some alphanumeric characters for the first and last or they have a “real name” with some spammy email address.
I’ll try the hotfix for a week and let you know if it works.
Forum: Plugins
In reply to: [Forget About Shortcode Buttons] Problems with new updateI’m having the same problem where the tinymce link function will not work when highlighting text. I get the error from tinymce.js
Uncaught TypeError: Cannot read property 'firstChild' of nullor
tinymce.min.js?ver=4506-20170408:2 Uncaught Error: Syntax error, unrecognized expression:{highlighted word}Forum: Plugins
In reply to: [Recent Posts Widget Extended] Example of rpwe_markup filterOK, I think I see the issue.
In the plugin’s include/functions.php line 200 apply_filters does not have any variables to be passed.
return wp_kses_post( $args['before'] ) . apply_filters( 'rpwe_markup', $html ) . wp_kses_post( $args['after'] );It should be:
return wp_kses_post( $args['before'] ) . apply_filters( 'rpwe_markup', $html, $args ) . wp_kses_post( $args['after'] );That way the args could be passed for the proper html to be filtered out. So your callback would look like this:
add_filter('rpwe_markup','your_filter_callback', 10, 2); function your_filter_callback($html,$args){ $posts = rpwe_get_posts( $args ); if ( $posts->have_posts() ) : $html = '<ul>'; //open post wrapper while ( $posts->have_posts() ) : $posts->the_post(); //Your post loop $html .= '<li></li>'; endwhile; $html .= '</ul >' //close post wrapper endif; return $html; }I say just copy what’s on the includes/functions.php from 105 to 217 and alter as you wish.
Forum: Plugins
In reply to: [Recent Posts Widget Extended] Example of rpwe_markup filterI’d like to see an example of how to use this filter as well.
I’ve tried to copy code from the include/functions.php and it seems to reset the arguments of the widget to the default arguments.
From what I gather, it seems like I have to be very “hacky” about getting this to work and that’s a bit much for a filter.
Hello,
When using the “number of days to show” in the widget (agenda view), it’s showing one day short. The “number of events” feature seems to work fine, though.Yes, it’s using v. 5.5.5. and #_EVENTIMAGEURL is still working.
Forum: Plugins
In reply to: [Fast Secure Contact Form] Working on a 4.0 versionI concur with Gberk’s suggestion to be able to edit the output of the form in both the “from” and “confirmation” emails. It would be great to include certain input fields in the confirmation email with shortcodes.
I’m not sure if my method was the best solution, but it worked for what I needed since I needed to record the POST values for a payment system.
Basically, I created a “plugins > events-manager” directory in my theme and copied the “placeholders” and “forms” directory in Events Manager to my theme. So basically my theme has the following directories:
plugins > events-manager > placeholders
plugins > events-manager > formsI edited the bookingform.php in my theme so that it calls a custom PHP function to deal with the form submission and redirect (I totally bypassed the AJAX script).
Sorry if that’s a bit vague… I kind of just slapped it together to get it up and running.
If there was a simpler method I’d love to hear about it. But I think my method works for what I needed (Events Manager Pro doesn’t support PayPal Payments Advanced at the moment so I needed to write my own payment handler to work with the bookings).