Update shortcode values using ajax call

The problem here is how PHP works. Once the server is done processing the GET request for a page, everything related to that request (i.e. values stored in global variables) is cleared and are lost. What you need to is to keep track of, one way or the other, the month index in the front … Read more

How to create blocks from shortcodes?

I want the shortcode to output “full blocks” This is the wrong approach, instead you want a block that outputs a shortcode. Specifically, a block that is rendered via PHP. Once you know how to do that it becomes as trivial as calling do_shortcode and inserting block attributes into the shortcode by crafting it, e.g. … Read more

short code output too early

A shortcode has to return just a string, you should not print something like in wp_list_pages() or echo. From Shortcode API: The return value of a shortcode handler function is inserted into the post content output in place of the shortcode macro. Remember to use return and not echo – anything that is echoed will … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)