I have shortcode [cities] and i need that when i import my pages to wordpress with text with this shortcode, there was own city by page id. Is it possible to do?
I created a simple shortcode:
add_shortcode ('cities', 'show_cities');
function show_cities(){
return "New York";
}
Think that i need some array with cities and page id's but i don't understand how to do this. Can you give me a hint?