I have many WordPress pages, I am using only one shortcode in those pages, For example the content of page1 is [shortcode name="page1"],
content of page2 is [shortcode name="page2"],
content of page3 is [shortcode name="page3"]
Is it possible that I don't need to specify the name attribute in the shortcode and I can just specify [shortcode] and it takes the title of the page as the name attribute automatically
For example, in plugin, i could write something like this
function shortcode($atts)
{
extract(shortcode_atts(array(
'name' => "**title of the page**",
) , $atts));
......
}
add_shortcode('short_code', 'short_code');