Same ACF Relationship field for multiple Post Options sub-pages?

The method to use is… In the acf_add_options_sub_page declaration, add ‘post_id’ => ‘article’ as a parameter. (post_id) This is how the field data, as entered on the Options page corresponding to my post type, will be saved. On the display end, display using $featured_posts = get_field(‘featured_posts’, ‘article’); ‘article’ and ‘report’ are both used. In my … Read more

How can I hide the ACF shortcode when empty

the code needs some modification. see below. /***************************************************************************************************************************************************** * * Usage: [acf_href href_before=”mailto:” href=”acf:field_name” text=”acf:field_name”] * * acf:fieldname will retrieve the value of the specified “fieldname” and use that. * get:url_variable will grab a variable from the URL and use that. * * [acf_href href=”acf:my_link” text=”Link to web site”] * [acf_href href_before=”mailto:” href=”acf:email_address” text=”acf:user_name” post_id=”get:post_id”] … Read more

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