Adding code to the end of every page
-
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
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding code to the end of every page’ is closed to new replies.