This is a rather sloppily coded plugin, unfortunately. However, to answer your questions:
-
Replace the function
gopiplus_clean
with thisfunction gopiplus_clean( $excerpt, $length = 0 ) { $string = strip_tags( str_replace( '[...]', '...', $excerpt ) ); if ( $length > 0 ) { $words_array = preg_split( "/[\n\r\t ]+/", $excerpt, $length + 1, PREG_SPLIT_NO_EMPTY ); $words = count( $words_array ); if ( $words <= $length ) { return $excerpt; } $array = array_slice( $words_array, 0, $length ); $string = implode( ' ', $array ); } return $string; }
-
Replace
if ($displayreadmore == "YES")
(in 2 places) withif ($displayreadmore == "YES" && (str_word_count($post_content) > $displaydesc))
-
Just enter ‘fade’ into the settings instead of the slide versions. It will work.
Related Posts:
- How to change “Read More” text?
- Creating a press page for our project
- Should all plugins be encapsulated in a Class?
- PHP code on Visual Composer Plugin
- Making plugin unique to not conflict with plugins with the same name
- How to find out if option exists but is empty?
- How to store ACF custom fields data in a custom table
- Trying to disable plugins doens’t work
- Thumb rating for wordpress – top user
- Errors while using ajax from external wordpress page
- Have Plugin Handle Specific URLs
- Setting up widgets in wordpress with a unique ID for the after_title argument
- post expire after x days
- allow arabic letters when register new account
- How to get all events from ‘All in one Events calender’ plugin in JSON format?
- cURL error 60: SSL certificate problem: unable to get local issuer certificate
- How do you remove plugin edit option?
- Make specific products accessible only to a user role in WooCommerce
- Where should I save an API key of my user when installing my plugin?
- Accessing post’s meta data based on user’s click of a post
- Custom form action to handle data inside a plugin
- WP Post Template – Templates in own folder
- How to add equivalent of php include to one page (as plugin?)
- Show Sub pages excerpt+thumbnail
- How to put “Read more” link in Custom Excerpt inside p tag?
- Override Plugin Script Fucnction in WordPress
- Image upload and download from front-end
- Shrink down register_settings on Settings API
- Parse error: syntax error, unexpected ‘new’ (T_NEW) in /misc/41/000/204/381/9/user/web/ragami.net/wp-settings.php on line 219
- How to call WordPress function other files
- Removing an action from wp_footer called in a class that’s inside a bigger class
- Ajax call returning 0
- Some code in shortcode function being ignored
- Subdomains with almost the same content
- Using window.onload with Ubermenu
- What is @Action in WordPress?
- How to include this jQuery File in wordpress?
- Inserting custom PHP script on homepage
- Add bcc to contact from on wordpress
- Getting taxonomy images to display on single-post with their terms
- wp_enqueue_scripts
- WordPress Console Application (ability to excecute a custom function via crontab only)
- Get all the URLs of the pages that uses a specific shortcode
- Wp Debug Enabled True Notices and Warning
- Pagination shows Same posts
- eaccelerator PHP error
- Looking for a good way to include php code in posts, but using special include markup rather than direct php code
- i need to make custom cron_schedule with custom interval time as a parameter into a custom payment gateway plugin wordpress
- Redirect unloggedin users
- Show prices with tax Inclusive in Minicart widget
- Custom fields not showing up in the user info (PaidMembershipsPro)
- WP Function does not trigger on Webhook API Call
- Cookie value changes back to previous value after changing
- Post source link plugin – small modification
- Remove a div class with condition
- Problem with checked box on wp car manager plugin
- issue concerning ob_end_flush functions.php
- In a plugin, How to update a json file using ajax
- Can you add a shortcode to a custom post type that gets the post_title, post_content, etc. and then passes that to a plugin function?
- Hooking into the HTML header container
- PHP Error message Upload images to remote server
- No route was found matching the URL and request method
- wp-admin/admin-ajax.php 400 (Bad Request) plugin
- Block plugin update possibilities (but not by hiding notifications)
- WP_get_image_editor resizing images in a foreach loop
- my hook or my function wont run in the cronjob
- Cannot figure out how to add a read more link to a manual excerpt. Please help
- CMB2 Output Select Box Chosen Option
- Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?
- How to echo a PHP Code After the Content
- Woocommerce list variations that are added already to cart in Single Product
- Show custom taxonomy in theme
- WordPress Admin sub-level menu issue
- Update (a function) post’s featured image as soon as $image_url changes
- Passing ajax variable to more than one wordpress plugin function
- Add class as plugin for other plugins
- Social sharing plugin directing to blank page after post sharing
- Displaying friend’s posts only
- How Can the_post Be Hooked Like the_content and the_excerpt?
- using href when creating wordpress plugin calls empty page instead of php file
- Media Playlist Plugin
- Saving custom form fields
- How to add php stylesheet to admin section instead of admin_head hook
- Template from scratch: Sidebars not showing widget
- Contact Form 7: custom validation [closed]
- Enforce conditions only for draft posts using WyPiekacz, ignore pending and published posts
- Replace Dash (-) and Underscore ( _ ) with Space
- How use Dynamic hyperlink on each wordpress post?
- How to add homepage Widget?
- What can I do to customize a widget provided with this plugin? from where have I to start?
- WordPress create permalink structure for custom post type with userid
- Shortcode inside a redirect [closed]
- Attachement title in wpallimport
- Block registration with viewScript
- how to show selected options drop down menu values in attributes field in after saving post.php
- Can’t use updated variables in handle function
- Make plugin admin page visible to other roles
- How Create LastMod and Update Date Only on Taxonomy Category and Tags
- Accessing Correct Database to Create REST API Endpoint
- How do I replace a logo image that’s hard-coded into a plugin’s logo.php file?