websters
Forum Replies Created
-
I had a similar issue and I found a workaround based on this post, so I’d like to thank you both! I’m just posting this in case someone finds it useful!
My problem was that with @bcworkz ‘s solution I only had the users visible in the dropdown in the quick edit and not in the Edit post page, so I gave a try to what @davidfcarr suggested and added a second role to my custom Associates User Role… The only problem was that not all Associates needed to be Authors, so I added an ACF True/False field type to my Add User Page and I added the following to my functions.php
function add_author_role_to_associates(){ global $user_id; $user = new WP_User( $user_id ); if (get_field( 'associate_author' ) == 1) { $user->add_role( 'author' ); } }
Forum: Plugins
In reply to: [Social Media Share Buttons] Only displays a Share List buttonHello,
this is the site’s url
https://nunu.websters.gr/
Thank you in advance!Forum: Plugins
In reply to: [Post Gallery] Conflict with ACF pluginHey!
First of all congrats for your plugin! It is proved to be quite useful!
I’m also having the same problem with null values in wordpress custom fields…
I’m not using Advanced Custom Fields, just the ones that I create in my functions.php, but since I installed Simple Post Gallery, every time I update my posts, I get my custom fields replaced by null values.
I guess it has something to do with the update_post_meta() function, but I’m not quite sure what exactly has to be modified!
Hope you can find a fix for that, because I really need your plugin!!!Thanks again!
@rajesh Soni Thank you very much for your help! It worked like a charm, but may I ask you why I needed to use return in the blog_short_info() function instead of echo and use the echo when I was calling the function inside the if statement?