Forum Replies Created
-
AuthorPosts
-
Ismael,
Thanks for helping with this issue! It is now working perfectly!Regards,
JohnMorining Rikard, I hve added the access information in the private content section.
Thanks,
JohnHI, i ADDED THE CODE BUT i AM GETTING THE FOLLOWING ERROR WHEN i OPEN MY WEBSITE:
Fatal error: Call to undefined function add_filter() in /home/storage/2/69/39/tenstep/public_html/tenstep/wp-includes/functions.php on line 5175
Below is the last few lines of code from the functions.php file located in the wp-includes file. Am I missing something?
Thanks,
John—————————————–
<?php
}/**
* Parses and formats a MySQL datetime (Y-m-d H:i:s) for ISO8601/RFC3339.
*
* Explicitly strips timezones, as datetimes are not saved with any timezone
* information. Including any information on the offset could be misleading.
*
* @since 4.4.0
*
* @param string $date_string Date string to parse and format.
* @return string Date formatted for ISO8601/RFC3339.
*/
function mysql_to_rfc3339( $date_string ) {
$formatted = mysql2date( ‘c’, $date_string, false );// Strip timezone information
return preg_replace( ‘/(?:Z|[+-]\d{2}(?::\d{2})?)$/’, ”, $formatted );
}add_filter( ‘avf_portfolio_cpt_args’, ‘enfold_customization_revisions’, 1 );
function enfold_customization_revisions( $args ) {
$args[‘supports’] = array( ‘title’, ‘thumbnail’, ‘excerpt’, ‘editor’, ‘comments’, ‘revisions’ );
return $args;
}
————————————-Tried to load the code as described, but once done and could not access my site anymore. I would receive a ” Parse error: syntax error, unexpected T_FUNCTION in /home/…/subdomain/wp-content/themes/enfold/functions.php on line 520.
Once I remove the code via FTP, everthing return to normal. I still have the problem, but my site is ok! Thank god! Not sure what happened, any ideas?
Where do I find the functions,php file? Which folder is it in? Where exactly would I add this code within the functions, php file?
Thanks in advance for your help!
Has this issue been resolved? I am facing the same problem! http://www,tenstep.com.br/tenstep
-
AuthorPosts