Skip to main content
15 events
when toggle format what by license comment
Aug 1, 2012 at 21:11 vote accept jimilesku
Aug 1, 2012 at 20:48 comment added jimilesku @amit no matter ehwre I put the code it throws the $end error and gives me the bottom line as the one that is missing the $end. When I place ?> it still remains. WTF?
Aug 1, 2012 at 20:47 comment added Amit Kosti let us continue this discussion in chat
Aug 1, 2012 at 20:47 answer added Amit Kosti timeline score: 1
Aug 1, 2012 at 20:44 comment added jimilesku oh well I did and it doesn't work so thanks for the try anyway. If You say it works for You great but it doesn't work for 2 of my wordpress local installations :(
Aug 1, 2012 at 20:43 comment added Amit Kosti so try putting that code before ?> at the end,
Aug 1, 2012 at 20:40 comment added jimilesku @amit I tried it on other installation of wp 3.4.1 and it shows the same $end error! I think the function is messed up!
Aug 1, 2012 at 20:38 comment added jimilesku my function.php starts like this: <?php ......
Aug 1, 2012 at 20:36 comment added Amit Kosti I placed it at end of functions.php file.
Aug 1, 2012 at 20:32 comment added jimilesku @amit I use custom theme, where did You place the code? I placed it exactly like I wrote in functions.php and it gives out $end error <?php doesn't work either! Do You know any other way to do this?
Aug 1, 2012 at 20:27 comment added Amit Kosti try enclosing this code within <?php and ?> and see if works.. Which theme you're using ?
Aug 1, 2012 at 20:24 comment added jimilesku @amit removing this function removes the error! I placed it at the very end of the functions.php
Aug 1, 2012 at 20:18 comment added jimilesku @amit Parse error: syntax error, unexpected $end i have local setup also but something is off in this code i don't know why.
Aug 1, 2012 at 19:39 comment added Amit Kosti provide the debug information, coz this code is working file with my local wordpress installation with 2010 theme installed
Aug 1, 2012 at 17:57 history asked jimilesku CC BY-SA 3.0