Marek ?elezny
Forum Replies Created
-
Yeah, the path is fine. Same as before “wp-content/gallery/”
Forum: Fixing WordPress
In reply to: Widgets & WP Query & duplicate postsGood point keesiemeijer. I changed the variable from $donotduplicate to $fcm_hp_duplicate_news but unfortunately that didn’t help either.
I have this variable only in the parts as shown in the pastebin, plus in functions.php
function mz_global_variable() { global $donotduplicate; $donotduplicate = array(); global $fcm_hp_duplicate_news; $fcm_hp_duplicate_news = array(); } add_action( 'init', 'mz_global_variable' );
Forum: Fixing WordPress
In reply to: Widgets & WP Query & duplicate postsI hope it’s not bad to reopen the topic but I encountered the same problem again, yet I can’t get it resolved even with setup_postdata().
I have another widget to show posts from 1 category in the sidebar, but I want to exclude posts that are on the homepage. When I tried to add global $donotduplicate to the widget’s function widget(), it didn’t remember the posts added earlier in HP news widget and returned 0 on var_dump.
Here is code: https://pastebin.com/1pbbh2F5
It’s working in class “mz_hp_otvirak”, “mz_hp_single_news” and I also want to use it in “mz_fcm_komentare_widget” widget.Can someone help me with that?
Forum: Fixing WordPress
In reply to: Widgets & WP Query & duplicate postsOh thanks. I just tried to add global $post and it’s now working. ??
Thanks!Forum: Plugins
In reply to: [YOP Poll] Multiple bar colorsYes it does but unfortunately I have to consider polls with less or more options so this solution works only with 4 options that change colors.
I am thinking more about:
– choose a color for each bar, or select options for red and green color
– ability to set that number somewhere in the settingsI thought that I would create a option field right in the poll editor (is there a wp filter to add a new option?) which would generate a CSS output via PHP that would be placed right in the <head> as <style>.
Forum: Plugins
In reply to: [YOP Poll] Multiple bar colorsHello,
I am using the basic white theme with slightly edited styling. All I need now to do are the multiple colors.
Do you mean that everytime there’s a new order (even recurring payment from PayPal), it starts the hook pmpro_added_order and in case it already exists, then it is a recurring payment and hook probably does nothing then. Am I right? If yes, thanks.
As for sandbox testing, when I started it, I was expecting some emails which would notify me of a recurring payment, but after setting it live, only paypal sends emails so I guess I had it right. I was just unaware of it working due to no notification.
Thanks for the reply,
MarkForum: Fixing WordPress
In reply to: Disable adding scripts before tagThanks that helped me.
Forum: Fixing WordPress
In reply to: A piece of code forces to save the draft foreverHeh, the code can be viewed by the “thank you” link… It somehow accidentally merged in.
Code on pastebin
(I hope it’s not a problem to post it there when it’s quite long code)