How to remove double quotes in a shortcode?

do a print_r to your $a variable, there you see everything that is happening echo ‘<pre>’; print_r($a); echo ‘</pre>’; die(); this way you can see if the url variable has double quotes, because it seems it doesnt have.

How to insert current user ID/entry ID into a shortcode?

I haven’t tested this, but you could try this: Put this php in your functions.php. function rt_connections_id () { if ( is_user_logged_in() ) { $usersid = get_current_user_id(); $newout = do_shortcode(‘ [connections id=’.$usersid.’] ‘); } else { $newout=””; } return $newout; } add_shortcode(‘current-user-connections’, ‘rt_connections_id’); Now call it into action by using the shortcode [current-user-connections] INSTEAD of … Read more

make user_id in a shortcode dynamic based on who’s logged in

One option is to register your own shortcode to act as a wrapper for the plugin’s shortcode. In the wrapper callback you would then retrieve the current user’s ID and pass it to the actual shortcode. Simplified example, add_shortcode( ‘my_user_profile_avatar’, ‘my_user_profile_avatar_callback’ ); function my_user_profile_avatar_callback( $atts, $content = null ) { // (int) The current user’s … Read more

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