Forum Replies Created

Viewing 1 replies (of 1 total)
  • Forum: Plugins
    In reply to: Paths in templates
    Thread Starter jay1980

    (@jay1980)

    Thanks this was a great help and it works out.
    I want to share the solution:
    * Go to the WordPress Source Viewer to default theme in the search.php -file (https://phpxref.com/xref/wordpress/nav.html?_constants/index.html)

    * You can see if you like to want to put an URL into a php function use: “functionname(TEMPLATEPATH./’filenameinthetemplatedirevtory.xyz’);”

    * If you like to put the filename as a Variable like you need it for a filepointer use:
    “$myfilevariable =TEMPLATEPATH.’/filenameinthetemplatedirectory.xyz’;
    $filepointer = fopen($myfilevariable, “r”);”

    Ok, hope this helps other hobby coders as well – this cost me some time.

Viewing 1 replies (of 1 total)