Skip to content

WordPress the_custom_logo doesn’t link on homepage

I’m using twentytwentyone-child theme and I want to link the custom_logo to the homepage even on the homepage. But I can’t find any setting for that? I read this: https://developer.wordpress.org/reference/functions/the_custom_logo/ And it says: “Displays a custom logo, linked to home unless …

WordPress page title fxn in echo p

This is probably super simple but I just cant seem to figure it out. How can I pass the current WordPress page title into this code? Below is a snippet from Formidable Forms WP plug-in which basically prints statistics from forms within my website. In this case, the # of entries for a specific form (55jqi) an…

How to show round figure number in php?

I have a variable called $totalResults which has dynamic values, depend on database entries. I need to show a limit like if $totalResults has 154 results then I want show that 154 out of 500. But I want it dynamically, like if the result cross 500, example the result value is 514, then it’ll show like 5…

run PHP script in JS file

I have minimal knowledge in php and js. Im trying to get value from my form once submit button has been click then trigger my php script. Js file: Here’s my php script: Here’s my form code in index.php. I have 3 fields name, email and message: I get console.log empty values. Is this the right path…

Can’t insert data on my database from laravel

When I try to insert data into my database, Laravel does not insert the records, but it is strange because when I migrate the tables to be able to perform the database, Laravel creates them without any problem, I do not know what I can be doing wrong if the migration run but stored no Route: Controler: Templa…

SQS SendMessage & $_POST Issue

If I put $author=’Steven King’; it works without issue, however it does not work with a post variable. To be “clear” if I hard code the the author in the JSON it will in fact post the message to the SQS queue. This is the expected result, however if I pass the string from the Post Vari…