Problem with isset and $_POST

After the second form </form> make a small change close the first two if’s, and remove the two } from end of function </form><?php } } if(isset($_POST[‘zapisz’])) { $woda_ciepla_kuchnia=1; $data_odczytu = ‘0013-00-00 22:00:00’; $data = array( ‘id’ => ”, ‘adres’ => ‘dasd’, ‘data_odczytu’ => $data_odczytu, ‘woda_ciepla_kuchnia’ => 1, ); $wpdb->insert(wp_ow_odczyty, (array)$data); } }

How to create a post with next buttons

WordPress has Page-Links links feature that allows to easily and natively split single post into multiple pages. The pages are separated using <!–nextpage–> tag and normally theme should automatically handle output, using wp_link_pages() template tag.

echo statement displayed on front end

Yes, it is common sense and you are missing something 😉 Plugins are just away to add code to wordpress, by default they are not inferior or restricted in any way more then then core code. Just another file(s) that wordpress includes on startup. It is your job as a plugin developer to restrict the … Read more

Basic function call on init failing

I am going to suggest that what you are doing is overly complex, at least insofar as I understand you. You can determine whether your shortcode has been registered using the Core function shortcode_exists, which returns a boolean. As far as I can tell, using that should provide completely equivalent functionality to your code above.

How to activate a plugin on the activation of a theme?

I highly doubt that what is happening is actually process of “activation” in WP terminology. What plugin is likely doing is just filtering data for what theme is currently active, without actually activating/deactivating (which would probably lead to chaotic collisions between different visitors). The easiest way to hide those shortcodes would probably be to make … Read more