Can not render in custom php file

2 years ago

RyoPegasus
Member | 1
+
0
-

i have a latte framework wordpress theme.

i have this code at theme's core file

{includePart “portal/parts/carousel-reviews-stars”, item ⇒ $post, showCount ⇒ false}

its perfectly works. But i want to create mycustomphp.php and paste this code it wont renders.

how can i include my custom php file in to this latte framework or how can i render this code in my custom php?

thanks.

2 years ago

Mabar
Member | 64
+
0
-

Not sure if it works but maybe one of that: {include mycustom.php}, {import mycustom.php}, {php include(‘mycustom.php’);}