Why does my custom slug only show in Gutenberg editor after page refresh?
Why does my custom slug only show in Gutenberg editor after page refresh?
Why does my custom slug only show in Gutenberg editor after page refresh?
Woocommerce Select Option Popup [closed]
Warning: Array to string conversion in /css/base.php on line 500 [closed]
You could consider wp_unique_id(): This is a PHP implementation of Underscore’s uniqueId method. A static variable contains an integer that is incremented with each call. This number is returned with the optional prefix. As such the returned value is not universally unique, but it is unique across the life of the PHP process. Even if … Read more
get_var not returning a value when the field contains an apostrophe
Is everything I need to code here? If it works then yes! If it does not work then no there is stuff missing. Only you can answer this by opening the site and checking if it does what it’s supposed to do. Is the code missing any WordPress best practices? This is a very open … Read more
I don’t know if that answers your question. But if you have a child theme in FTP, you can go to wp-content -> theme -> The folder of your child theme, here you will find everything you need. Otherwise if you only have a parent theme, you can still create a child theme, but the … Read more
I found the issue, had to edit /etc/php/8.3/cli/php.ini file, by adding/editing following lines : [mail function] ; For Win32 only. ; https://php.net/smtp #SMTP = localhost SMTP = mysmtpserver.domain ; https://php.net/smtp-port smtp_port = 25 username = myusername password = mypassword sendmail_from = [email protected] Then a service nginx restart. I still don’t understand why PHP is able … Read more
you can generate shortcodes and launch them with this function : https://developer.wordpress.org/reference/functions/do_shortcode/ so you can do that in your plugin : add_shortcode(“MY_PLUGIN__forms_with_dates”, function ($atts, $content, $tag) { $atts = shortcode_atts([ “months” => 11, “id_form” => NULL, ], $atts, $tag); if (!isset($atts[“id_form”])) { return “shortcode $tag : the argument id_form is missing.”; } $shortcodes = “”; … Read more
get_the_permalink() returns the permalink as a string and doesn’t echo it. You either need to echo this yourself <?php echo get_the_permalink(); ?> as you’ve got in some of your other <?php tags, or you can use the helper function the_permalink() which does echo <?php the_permalink(); ?> the same pattern as you’ve used for the_title(). Note … Read more