Sruthy@xyzscripts
Forum Replies Created
-
The snippets are worked by shortcodes and this is not possible to use a shortcode inside form since shortcodes are not allowed in html attributes.
Forum: Plugins
In reply to: [Insert Html Snippet] Insert PHP?No.Insert Html Snippet allows you to create shortcodes corresponding to html snippets. You can create a shortcode corresponding to any random HTML code such as ad codes (adsense or any adserver), javascript codes (addthis), video embedding codes, css codes etc.
- This reply was modified 4 years, 1 month ago by Sruthy@xyzscripts.
Forum: Plugins
In reply to: [Insert PHP Code Snippet] executing php code in custom post typeIf you want to execute php code only on custom post type,you can use
is_singular( $post_types ) function.For example if you want to display something only on custom post type book, then you can use like following
if(is_singular( ‘book’ )) {
echo “Hii”;
}- This reply was modified 4 years, 2 months ago by Sruthy@xyzscripts.
Forum: Plugins
In reply to: [Insert PHP Code Snippet] when comes an update “Insert PHP Code Snippet”?We updated the plugin recently and its works fine in the newest wordpress version
Forum: Plugins
In reply to: [Insert PHP Code Snippet] printf new rule doesnt work in wpYou can use the PHP newline characters \n or \r\n to create a new line inside the source code. However, if you want the line breaks to be visible in the browser too, you can use the PHP nl2br() function which inserts HTML line breaks before all newlines in a string.
Forum: Plugins
In reply to: [Insert PHP Code Snippet] xyz php not compatible with WorsPress 5.9Its works fine in the newest wordpress version