I generated an Options Page for my WordPress using this tool: https://jeremyhixon.com/tool/wordpress-option-page-generator/ I inserted the code my functions.php, the options page is visible, however, …
Tag: wordpress
Trigger laravel event from wordpress
I’m currently working on a laravel app. The same app is already running on wordpress and through the laravel application we are going to add some additional features in original application. The laravel will run on the subdomain. Here is the thing: On wordpress website, we are publishing different publi…
How to Replace HTTP to HTTPS for page secure
errorThis Type error Display in this site => why not padlock? An image with an insecure URL of “http://rotary.mylionsgroup.com/wp-content/uploads/2020/07/banner.jpg” was loaded on line: …
Wrapping PHP and HTML in PHP function to create a shortcode
I’m trying to create a shortcode for use in WordPress, that will allow me to use PHP and HTML functionality. I have created the shortcode and it works using simple echo Hello World, but when I try to …
WordPress PHP get_results query from MySQL DB not working
I’m using the following PHP code to attempt to fetch values from the DB of all entries with ‘ID’ equal to 5055. It doesn’t return any result, and I’m not sure what’s wrong… Answer I presume this is a local webpage you’re working on. If so, here’s a couple …
Get a product from specific product attribute term name in WooCommerce
I’m trying to create a WooCommerce shortcode to display one product with some information. Every day there is a new product with attribute DAGAANBIEDING and value JA or NEE. I only want to show that …
WordPress custom file upload being overwritten on no file selection
I’m working on a custom theme that allows you to upload multiple images on one page. Since I have multiple file inputs, I use this function in my functions.php file (inside a loop for each file input): The inline function is the only thing I’ve tried that works for multiple files at a time. Either…
Cannot Upload .GLB to WordPress Media Location
This is not a quick failure, I have spent a totally of 5 completely full days trying to figure this out. Initially I was limited by file size and then file type; in which I removed the WordPress restrictions and am now “capable” of uploading my 177MB .glb file to WordPress. However when doing so, …
How can we display current user display name with shortcode?
I got this shortcode function to work to show current user display name, but now for some reason it is displaying the user’s first name. Is there another way to get current user’s display name and output it with shortcode? Answer If you go to a user’s profile (User’s > All users >…
Return URL query into post shortcode from functions.php in WordPress
I am able to get the shortcode to return the string ‘evs’ inline in post [ when I plug that in to return ] but unable to return the post thumb url, using the same shortcode from functions.php What am I doing wrong here: Been stuck on this for ages now – please save my week ! Answer You are