sonmar
Forum Replies Created
-
Hello,
Thank you for your quick reply.
I found 3 instances of the code
$id = acym_getVar('int', 'id');
I replaced the one inside the
private function getWYSIDStylesheet() {
and it worked perfectly!
Thanks again for your help!
That would be awesome! Thank you!
Hi,
So, after the recent update, as expected, the direct modification to the plugin was gone. I now find a variable $allowedStatuses in the file wp-content/plugins/acymailing/back/dynamics/post/plugin.php (line 328) that sets which post status are shown in the newsletter archive page. But I can’t find any hooks or filters to safely edit that variable outside of the plugin files.
Would you be so kind to give me some directions here?
Many thanks.
Hello,
Thank you for your quick reply. I modified the line, so that it also includes my custom post status posts, like this
AND (post.post_status = "publish" OR post.post_status = "my_custom_post_status")
and it works as intended.
But I would like to follow the best practices and don’t edit directly any plugin code. However, I’m not familiar with filters or hooks, so by any chance could you show me what php snippet should I add to my custom theme functions.php?
Thank you once again.
Forum: Plugins
In reply to: [Secure Custom Fields] Google Maps iframe linkHello,
For anyone facing the same problem, I created a shortcode with ACF code to load Google Maps field and then placed it in a modal widget from Elementor.Oh, well, that’s bad news for me ?? Have to look for another mailing solution. Thanks
Hi Nithin @wpmudevsupport11,
Thank you very much, it worked! Just had to add a'posts_per_page' => -1,
so that the field showed all the CPTs titles.
I wish you the best!
Kind regards,
SoniaHi Nithin @wpmudevsupport11,
Thank you for your time.
This seems to be very simple to achieve and however I’m unable do get it working…
I tried following your example but keep getting code errors that I don’t understand.
I also tried just adding this
array( 'post_type' => 'programmes', 'numberposts' => -1, 'orderby' => 'title', 'order' => 'ASC' )
but the select field shows me “programmes”,”-1″,”title” etc. as options.
Any ideas on this?
Forum: Plugins
In reply to: [WP Ultimate Post Grid] All Terms button translation@brechtvds Thank you for your time with this. I tried something that worked and thought of sharing it with you. I discovered that the field were we insert the text string accepts shortcodes, so I made a custom shortcode that checks the site language and outputs a text accordingly.
function mstgrid_see_all_filter_string() { $currentlang = get_bloginfo('language'); if($currentlang=="en-GB") { $seeallstring = 'All';} else { $seeallstring = 'Todas';} return $seeallstring; } add_shortcode( 'odcs_mstgrid_see_all_filter_string', 'mstgrid_see_all_filter_string' );
Then I inserted
[odcs_mstgrid_see_all_filter_string]
in the All terms button box and voila! One grid fits both my EN and my PT site!Forum: Plugins
In reply to: [WP Ultimate Post Grid] Pagination issues@brechtvds thank you for your reply. As a workaround, is it possible to show the pagination only when the tab “All” is selected and hiding it on all the other tabs (the ones that filter the posts by a specific category)?
Forum: Plugins
In reply to: [Spectra - WordPress Gutenberg Blocks] Taxonomy selector not showingHello @swetakumari,
Yes, they had both show_in_rest set to true. It was something else related to the plugin I used to create the custom post type and the custom taxonomy, and the setup of the CPT custom fields. All fine with Gutenberg Blocks – Ultimate Addons for Gutenberg.
Thank you!Forum: Plugins
In reply to: [Custom Content Shortcode] ACF image field link (url) with size optionThank you @polarracing. My bad for not reading the documentation carefully enough, I went trough it once more and ended up finding the return=url option.
Forum: Plugins
In reply to: [Custom Content Shortcode] IF with PASS and checking for empty fieldHmm, I must have done something wrong the first time, because now your suggestion is now working.
Either way, I changed the IF statement and added an empty=”false” and it is working in a way that makes sense to me and allows me to use {FIELD} in more places:
Here’s my final code:
[pass field=program_faculty1] [-pass id={FIELD} type=faculty field=faculty_linkedin] [if pass='{-FIELD}' empty="false"] <a href="{-FIELD}" target="_blank"> <i aria-hidden="true" class="fab fa-linkedin" style="font-size: 2em;"></i> </a> [/if] [/-pass] [/pass]
What do you think? I couldn’t find any info about how to use variables, so I’m thinking of going this way instead ??
Forum: Plugins
In reply to: [Custom Content Shortcode] IF with PASS and checking for empty fieldThank you for your time @polarracing . It didn’t work either.
I tried with nested PASS and somehow got it working…
[pass field=program_faculty1] [-pass id={FIELD} type=faculty field=faculty_linkedin] [if {-FIELD}] EMPTY [else] NOT EMPTY [/if] [/-pass] [/pass]
However, this doesn’t make sense to me, because I thought the IF statement was by default TRUE (ie, saying that there is content inside that field) and in here, it’s working the other way.
Forum: Plugins
In reply to: [Custom Content Shortcode] IF with PASS and checking for empty fieldThank you @polarracing , however I need to check if the field faculty_linkedin, from a post with the ID given by the field program_faculty1, is empty or not.