Daglig Shaarli
March 9, 2025
plugin development - Calling a function from functions.php in custom page/ blog post - WordPress Development Stack Exchange
Is it possible to call a function from functions.php in custom page or blog post?
I put simple function in functions.php:
function testTest()
{
echo "Test";
}
And called it from the page:
<?php testTest();?>
-ckn-:
I trådens svar gives anvisning på hvordan man kan kalde en funktion. F.eks. opsætte en shortcode til at kalde den.
Det kan være værd at lege lidt med i sandkassen. F.eks. til Copyright note.