Array showing all values of loop instead of specific value to post

Figured it out: /** START The News Feed Dashboard Widget */ add_action(‘wp_dashboard_setup’, ‘dfdw_feed_dashboard_add_widgets’); function dfdw_feed_dashboard_add_widgets() { $args = array(‘post_type’ => ‘dashboard_feed’, ‘numberposts’ => ‘-1’, ); $loop = new WP_Query($args); while ($loop->have_posts()): $loop->the_post(); $feed_id = get_post()->ID; $feed_name = get_field(‘feed_name’); wp_add_dashboard_widget($feed_name, $feed_name, ‘my_cool_widget’, null, $feed_id); endwhile; } function my_cool_widget($post, $callback_args) { $post_id = $callback_args[‘args’]; $feed_url = get_field(‘feed_url’, … Read more

Set a dashboard widget to the top?

Unfortunately there is no way to force a dashboard widget to the top, however following this link should help you…in a way. Note: Unfortunately this only works for people who have never re-ordered their widgets. Once a user has done so their existing preferences will override this and they will have to move your widget … Read more

A message to clients in the dashboard widget received from another site

No, iframe is not a good desicion. The best option is creating a custom api. WordPress has a REST API with the ability to add custom endpoints: https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/ If you’re familiar enoigh with coding, you can create a custom api that shows the message that you want and in the client site, write a code … Read more

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