Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • About problems escaping characters – i stand corrected. To have \t \n and other characters properly escaped, they need to be enclosed in double quotes. These troubles are what i get for not learning basic PHP …

    But, sometimes that is not an option. Example would be ‘items_wrap’ option passed in array() argument for wp_nav_menu(). It has to enclosed in single quotes else function will fail to output anything.

    String concatenation with for example “\t” or “\n” will work.

    Hi ! I have started making a barebone test theme using header.php, home.php, footer.php and functions.php .

    I looked around, found several examples for walker function and created a barebone example.

    The only problem i have is that newline \n is not properly escaped. I do not know why. I ‘ve look at function end_el() that also has \n which IS properly processed. I don’t know if this is a bug in PHP executable in my WAMP installation.

    Anyway, look here for example.

Viewing 2 replies - 1 through 2 (of 2 total)