About the php file
wp-content/themes/travelify/library/structure/content-extensions.php
After further investigation on the_title_attribute, I found that there is a syntax error.
As I have mentioned, in version 3.0.8 of the theme, the_title in line 119 and 151 of content-extensions.php was updated to the_tilte_attribute.
However, the code still keep following the syntax of the old function, so there will be a syntax error.
Although the_title and the_title_attribute are similar functions they have different syntax.
the_title use this syntax
the_title( '', '', false )
the_title_attribute use this syntax
the_title_attribute( array('before' => '' , 'after' => '' , 'echo' => false ) )
However, the code used in version 3.0.8 is
the_title_attribute( '', '', false )
There is a syntax error, and as a result the code does not function as expected.
My suggestion is as follows
Search for the code
the_title_attribute( '', '', false )
and replace with the code
the_title_attribute( array('before' => '' , 'after' => '' , 'echo' => false ) )
Thank you.
@navobel May I copy your precautions here.
Precautions: I am not an expert of wordpress themes, php or similar things. Use this solution with caution. I do not take responsibility for security issues or other malfunctions. Please make a backup before testing, so that you can restore in case of a malfunction. Thank you.
-
This reply was modified 3 years, 10 months ago by punlf.