Adding code to the end of every page

[ad_1]

Hi

I want to add a piece of shortcode to the end of every page on my site. Currently I have around 1200 pages and I am thinking it will take some time to do this one page at a time. Is it possible to do this through the database using PHPMyAdmin please? It is in WP_Posts, WP_Content. I am going to try something like this:

$query = "
INSERT INTO <code>databasename</code> <code>databasetable</code> (

post_content’); “;
mysql_query($query);
echo ”
The piece of shortcode
“;`

I am concerned that it will delete post content rather than add to the end.

Thanks

Rich

  • This topic was modified 5 hours, 13 minutes ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer