Whats wrong with my code? Need To add String to shortcode? [closed]

$special_id = ‘ . do_shortcode(‘[url_path_number]’)’ ; Is completely wrong. do_shortcode() is a function and shouldn’t be inside quotes, because that just makes a string that says “do_shortcode()”. I don’t even know what you’re trying to do with the dot at the beginning. $special_id = do_shortcode(‘[url_path_number]’); Is correct.

Displaying categories

get_the_category_list works on The Loop only and needs a post_id as a parameter. As a page does not have category, it won’t work by default in a page. If you want to retrieve all the categories on a page, you should use one of the following: wp_list_categories get_categories( array( ‘echo’ => false ) );

If two tags in the middle i need comma

wp_tag_cloud() accepts a separator parameter, so you can modify your call like this: wp_tag_cloud( array( ‘separator’ => “, “, // Default value: “\n” ‘unit’ => ‘px’, // font sizing choice (pt, em, px, etc) ‘include’ => $tag_ids, // ID’s of tags to include, displays none except these ) );