Use delete_option in action link
Use delete_option in action link
Use delete_option in action link
In order to tackle this, there are few ways in which it could be achieved. Option One Using the CPT on it’s own. When you create a Custom Post Type it comes with the ability to have an archive page. This archive page which is generated by WP automatically pulls in the posts, provided that … Read more
Your chunk of code if (isset($_POST[‘submit’])) { would process all the form submissions (even other forms which is not your settings page) which is why you are lossing your data. Even though this is not good way to create option page. But If you do something like if(is_admin() && isset($_POST[‘submit’]) && isset($_POST[‘ffita_gads_capub’])){…. could solve your … Read more
Most plugins store their settings in the database. So whenever you push code from one site to another, you need to at least push the plugin-specific data along with your files. You could hire a developer to determine where the plugin is storing data, or if you’re comfortable using phpMyAdmin, you can use that and … Read more
Options saved and called in wrong order
Show echo ready in single.php
Enable plugins that are “not supported”
Your code just outputs empty checkboxes. You have to check each box’s value and then set checked=”checked” if it’s true. <td><input type=”checkbox” placeholder=”Meta Key” name=”map_option_3″ <?php // check whether map_option_3 was saved if(isset(get_option(‘map_option_3’))) { ?>checked=”checked”<?php } ?> />Name<br> <input type=”checkbox” id=”cb_name” name=”map_option_4″ <?php // check whether map_option_4 was saved if(isset(get_option(‘map_option_4’))) { ?>checked=”checked”<?php } ?> />Price<br><input … Read more
<?php // First, enable thumbnails if they are not enabled yet add_theme_support( ‘post-thumbnails’ ); /* * Add image dimensions * * name * width * height * crop or resize (true or false) * * 99999 means very big number */ add_image_size( ‘featured-portrait’ , 200 , 99999, false ); add_image_size( ‘featured-landscape’ , 99999, 200 , … Read more
When ‘publish’ is clicked in customizer, the option ‘theme_mods_THEMENAMED’ is updated. An function/action could be added See https://developer.wordpress.org/reference/functions/add_action/ on the wordpress actions add_option_(option_name) and update_option_(option_name) See https://codex.wordpress.org/Plugin_API/Action_Reference#Administrative_Actions. The new function could then save what ever option you want to update.