-
AuthorPosts
-
August 26th, 2017 at 05:11 #52775
I love Verbosa, and I grad that Verbosa update!
After update, I customized landing page immediately.
During my customization, I wanted to use slider and then I installed cryout serious slider plugin.
But, I’ve hit the wall. The slider on landing page has extra text.
By the several attempts, I identified the cause.
I have inserted some code before and after entry-contents in order to show advertisement and sns buttons by using function.php.
And I’ve used add_filter(‘the_content’, ‘my_function’) function in function.php.
So, because slider is custom post type, the function add extra codes to slider’s contents.
Fortunately, Verbosa have several convenient hooks. I success remove extra codes – that I set shown before the contents – from slider.(Now I use ‘cryout_singular_before_inner_hook’.)Now, I am still in trouble.
I can’t remove extra codes – that I set shown after the contents – from slider…..
What should I do, or Should I use another plugin ?August 27th, 2017 at 16:51 #52853ZedCryout Creations mastermindAny slider plugin that uses custom post types will have the same problem as you are filtering the_content too broadly.
You should limit the filter to certain post types.
- https://wordpress.stackexchange.com/questions/23223/in-need-of-a-content-replace-filter-for-posts-in-a-specific-wordpress-category
- https://developer.wordpress.org/reference/functions/get_post_type/
If you like our creations, help us share by rating them on WordPress.org.
Please check the available documentation and search the forums before starting a topic.August 28th, 2017 at 12:10 #52878Thanks.
I used is_singular() function in filtering.
By using get_post_type() == ‘cryout_serious_slide’ in If branch, I resolve my problems.
Thank you. -
AuthorPosts
The topic ‘How did I move Slider with Serious Slider well ?’ is closed to new replies.