pickme
Forum Replies Created
-
Forum: Plugins
In reply to: [Masks Form Fields] Mask URLHi @ivanpetermann,
Thank you!
Forum: Plugins
In reply to: [Read More Without Refresh] Text populated by shortcodeHello George,
Thank you for clarifying this!
I have alternatively used jQuery to accomplish it.
Regards
- This reply was modified 2 years, 9 months ago by pickme.
Forum: Plugins
In reply to: [Read More Without Refresh] Text populated by shortcodeHello George,
I use [description] to display user generated content from an input textarea form field.
By embedding the shortcodes in the sequence of [read more][description][/read] all of [description] content is hidden and displays by the read more toggle. This is not what I aim for.
Is there a way to extract, say, 3 sentences or extract a certain number of letters (always different content since it is user generated) from shortcode [description] in order for the read more/less toggle to be displayed below the content that is always visible (eg the 3 sentences)?
Thanks
Forum: Plugins
In reply to: [Read More Without Refresh] Text populated by shortcodeHi @gkouvousisg,
I not sure I have understood exactly what to do. I will try your solution and if I encounter difficulties I might contact you again.
Thank you!
Forum: Plugins
In reply to: [Read More Without Refresh] Text populated by shortcodeHello!
Shortcode [description] inside [read more][/read] populates the text but it is all hidden and displayed in full with the read more toggle.
The problem with populating the long text with shortcode [description] is that I cannot display a certain portion of the text, say 3 sentences, above the read more toggle that will display the rest of the text.
I do not think I can use php in the theme’s custom text block but only shortcodes.
I can add a snippet though using code snippets plugin.
Can this be achieved?
Ty
- This reply was modified 2 years, 9 months ago by pickme.
Forum: Plugins
In reply to: [Code Snippets] Download snippetsHi @szymonnt
Thank you for your suggestion. I rolled back to 2.14.6 as well.Forum: Plugins
In reply to: [Masks Form Fields] Masks on WP backend and frontendForum: Plugins
In reply to: [Code Snippets] Load snippet on WP backend – adminThat’s what I thought but I was not completely sure!
Thanks a lot for your help and clarifying this @bungeshea ??
- This reply was modified 2 years, 10 months ago by pickme.
Forum: Plugins
In reply to: [Code Snippets] Load snippet on WP backend – adminPerfect!
I will use
admin_footer
for the code to be placed at bottom of page to speedup loading of wp backend.I tested and works! ??
I was checking WordPress Code Reference for this solution since I noticed that the code cannot run on both environments when using
is_page
.Today I read this article about is_admin
https://dev.to/lucagrandicelli/why-isadmin-is-totally-unsafe-for-your-wordpress-development-1le1
Could you please let me know if using is_admin will make wordpress insecure?
Thank you very much for your help @bungeshea !
- This reply was modified 2 years, 10 months ago by pickme.
Forum: Plugins
In reply to: [Code Snippets] Load snippet on WP backend – adminI am using the following code in the snippet field:
function hide_checkbox_li() { if ( is_page ( array( '140', '141' ) ) ) { ?> <script type="text/javascript"> jQuery code here </script> <?php } } add_action('wp_footer', 'hide_checkbox_li', 100); add_action('admin_head', 'hide_checkbox_li', 10);
I want the code to run on frontend only for pages with ID’s 140 and 141 as well as WP backend. Adding an additional add_filter function will this be correct and secure?
Thank you
- This reply was modified 2 years, 10 months ago by pickme.
Forum: Plugins
In reply to: [Masks Form Fields] CSS attributes upon invalid entryHello @ivanpetermann ,
With mask “0000” the code below works. However, I tried to change the mask pattern but actions removeClass and addClass do not work. The code I use is this:
function validation_colors() { ?> <script type="text/javascript"> jQuery(document).ready(function($) { $("input[type='text']").mask('A', {translation: {'A': {pattern: /[a-zA-Z0-9]/, recursive: true}}}, { reverse: false, onComplete: function(val) { $("div.fieldset-job_title > div.field-head > label").removeClass("invalid-text").addClass("valid-text"); }, onChange: function(val) { $("div.fieldset-job_title > div.field-head > label").removeClass("invalid-text").addClass("valid-text"); }, onInvalid: function(val, e, f, invalid, options) { $("div.fieldset-job_title > div.field-head > label").removeClass("valid-text").addClass("invalid-text"); } }); }); </script> <?php } add_action('wp_footer', 'validation_colors', 10);
Could you please help me find out what is wrong with the pattern ‘A’ that works, but the classes that do not?
Thank you
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Sort between pagesHi @cherylstash and @liljimmi
Was the issue mentioned by @cherylstash related to the inability of ordering the terms after updating to WP 5.9.1?
You mention that it works now, what do you mean?
For me the ordering of terms is lost and reordering of terms does not work after 5.9.1. Moreover after saving and reloading the taxonomy page, all terms still reorder alphabetically.
Thanks
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Not working on WP5.9Hi,
I have updated to wp 5.9.1
Ordering of terms is lost and reordering does not work, reloading the term page all terms are set alphabetically.
Will this issue be fixed by the plugin’s update or WP’s update or not fixed at all?
On the ticket for this issue: https://core.trac.www.ads-software.com/ticket/54902 it is mentioned that it is fixed on wp 5.9.1, but the plugin’s ordering still has the issue.
Thanks
Forum: Plugins
In reply to: [Simple Taxonomy Ordering] Not working on WP5.9deleted msg
- This reply was modified 2 years, 11 months ago by pickme.
Forum: Plugins
In reply to: [Masks Form Fields] CSS attributes upon invalid entryI will try again and I will let you know. Initially I did not make it to work.
Thanks