Support for Envato Buyers › Forums › OldCar › Video Issue
- This topic has 10 replies, 2 voices, and was last updated 11 years, 3 months ago by
FocuxTheme Support.
-
AuthorPosts
-
-
October 23, 2014 at 9:19 pm #6503
rsharpe75
MemberHi,
I am no using a video service on my site but instead I am using self-hosted videos. To display the videos I am using the Flowplayer plugin. The plugin uses shortcodes to place the video on the page, similar to this: [flowplayer id=”88″]
My issue is that the actual shortcode string is being shown in the excerpt on the main page instead of the relevant text. How do I stop the shortcode showing?
Regards
-
October 23, 2014 at 11:57 pm #6510
rsharpe75
MemberHi Johnny,
That didn’t work, do you think strip_shortcodes would work instead?
-
October 24, 2014 at 3:33 pm #6516
rsharpe75
Memberstrip_shortcodes didn’t work either. I’d really like a solution to this issue because leaving exposed shortcodes on the page is not an option for me.
-
October 24, 2014 at 10:45 pm #6524
FocuxTheme Support
KeymasterCould you tell me your website link? If possible, you can post your link and wp login details with private reply.
I want to check your site first in order to make sure my understand is correct or not. -
October 29, 2014 at 9:22 pm #6584
rsharpe75
MemberThis reply has been marked as private. -
October 30, 2014 at 4:03 pm #6593
FocuxTheme Support
KeymasterHi
I checked your site, or you can try the following code
echo do_shortcode(get_the_excerpt());
Let me know the result. If it still can’t solve the issue, hope you can tell me your wp login details, I will change the code with theme editor.
Thanks
-
October 30, 2014 at 10:41 pm #6603
FocuxTheme Support
KeymasterOh.. finally I understand your mean.
You can set the excerpt text separately, just put your own excerpt text into “Excerpt” field which is below the editor.
Just check the latest post, I have fixed it.Thanks
-
October 30, 2014 at 10:45 pm #6605
rsharpe75
MemberSo there is no way to use automatic excerpt? If there is a way to fix this for automatic excerpt it would be the most preferred approach for me.
Regards
-
November 1, 2014 at 12:11 am #6611
FocuxTheme Support
KeymasterIt’s already automatic excerpt now, but like your issue, the automatic excerpt can’t detect and remove the shortcode, so then you must set it separately.
-
October 23, 2014 at 11:51 pm #6508
FocuxTheme Support
KeymasterHi
Because the excerpt content doesn’t support shortcode by default, so you need to edit the posts-grid.php, find the following code about at line 27
the_excerpt();
Change to
echo do_shortcode(the_excerpt());
Thanks
-
October 30, 2014 at 4:48 pm #6597
rsharpe75
MemberThis reply has been marked as private.
-
-
AuthorPosts
- You must be logged in to reply to this topic.
