I am building a site that has a list of stores.
How can I add my store info to wp_post
and wp_postmeta
so I don't have to manually add them in dashboard?
I am building a site that has a list of stores.
How can I add my store info to wp_post
and wp_postmeta
so I don't have to manually add them in dashboard?
You don't to modify the posts in database for that. You can simply add your desired modification at the end of post content every time a post is being displayed.
function my_function($content) {
$content .= 'My Store Info';
return $content;
}
add_filter('the_content', 'my_function');