How to pre-set WordPress settings for specific posts?

After scouring on the net and bouncing around, I figured out how to fix my problem. Install ACF and create your own post types. In Functions.php, add the following codes to default category for that post type. function add_pastorheart_category_automatically($post_ID) { global $wpdb; if(!wp_is_post_revision($post_ID)) { $pastorheartcat = array (15); wp_set_object_terms( $post_ID, $pastorheartcat, ‘category’); } } add_action(‘publish_pastors-heart’, … Read more

Is it possible to control content on different pages by checkboxing wich content is shown where on a wordpress theme page?

You can use the WordPress Settings API to do what you’re looking for. You can follow this – WordPress Settings API Tutorial ( www.ottopress.com ) to setup an options page, and depending upon the options saved in database you can show different content. Example – <?php // get the stored value in variable – foo … Read more

How to import data from another website using an API link?

First, that echo ‘<script src=”https://www.gmodules… seems completely unrelated to the question, isn’t it? Second, that API is for a paid service without a public API, so we cannot answer for their “api answer”. Ask their support. What you are looking for is wp_remote_get. Normally, the response from an API is a Json string. But in … Read more