How to create a widget with a populated dropdown?

I finally got the widget built. I hope this will help another newbie. <?php /* * Plugin Name: Events Widget Description: This widget allows the user to select an Event name. Version: 0.5 Author: Dan Statham */ function gdd_Events_load_widgets() { write_log(‘gdd _Events_load_widgets’); }// gdd_Events_load_widgets // Register the widget function my_register_events_widget() { register_widget( ‘gdd_Events_load_widgets’ ); } … Read more

Redirecting wordpress search query to archive page

Simply make an HTML form in Elementor on the archive page where you want to search. Code: <form class=”zohaib-search-form” role=”search” action=”/courses” method=”get”> <input placeholder=”Search..” name=”s” type=”search”> <button type=”submit”><i class=”fas fa-search”></i></button> **Note:** name property of input should be ‘s’ because the search query is looking for key ‘s’ to get and run it. Replace the action … Read more

how do I hide or encrypt query strings for gravity forms

I was unable to find a way to reasonably and securely accomplish this with Gravity Forms’ built-in features and the selection of AddOns currently available. So I have recently begun work on the Gravity Forms Population Link AddOn to provide more pre-population/prefill options and functionality. Among other things, it includes Encoding pre-populated values into a … Read more

Clickable Text To Replace Radio buttons

This is an css question, so really this is not the right place for it. However, you need to use the + operator and the :checked selector like this: (This assumes your radio buttons are built like this): <input type=”radio” id=”my_awesome_radio_1″ value=”value1″ /> <label for=”my_awesome_radio_1″>Value 1</label> <input type=”radio” id=”my_awesome_radio_2″ value=”value2″ /> <label for=”my_awesome_radio_2″>Value 2</label> <input … Read more

AMP and Paypal form CORS issue

Existing forms with the post method can be problematic to adapt to AMP especially when they are pointing to an external domain. There are two issues: Forms in AMP with the post action are expected to be requesting JSON data to display in the form without causing a page navigation. When page navigation is desired, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)