• Resolved remoteid3

    (@remoteid3)


    Hi,

    I was trying to add shortcode to limit number pf posts in theme function php (editor), I added the code then deleted this line and the error (Parse error: syntax error, unexpected ‘<‘ in /home/content/r/e/m/remoteid2/html/wp-content/themes/yoko/functions.php on line 58) comes up in the browser window.
    I have gone back to check the php code again and tried to update after removal of the shortcode (<?php echo do_shortcode(“[ic_add_posts showposts=’5′]”); ?) I have obviously made an error in where I placed the code but cannot get the site to work at all now or dashboard.
    Can you please offer some assistance.

    Kind Regards

    Brenton

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

    (@alchymyth)

    can you access the functions.php file from the server, using FTP or the file management system of your hoster? http://codex.ww.wp.xz.cn/FTP_Clients

    please post the full code of functions.php of your theme;
    (please use the pastebin – http://codex.ww.wp.xz.cn/Forum_Welcome#Posting_Code – and post the link to your pastebin here)

    the code you tried to add into functions.php is not generally the kind of code you would use in a functions template; what plugin does the shortcode belong to?

    to get back into your site, try to temporarily rename the theme’s folder (using FTP); this should activate the default theme and allow you to get back into the dashboard.

    you should then be able to check the functions.php file, and repair it or replace it with a new copy from your theme; you can then rename the theme’s folder back to its original name, and hopefully reactive your theme.

    Thread Starter remoteid3

    (@remoteid3)

    Thanks for this but when logged into ftp server was able to see the code I had inserted had not been deleted. Deleted it and now it is all ok.
    thankyou

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

The topic ‘Parse Error Syntax’ is closed to new replies.