You are here:  » PT in root and WP in subfolder ?


PT in root and WP in subfolder ?

Submitted by fabio on Tue, 2017-01-10 15:14 in

Hi !

I already have PT working fine on one domain with a custom template (http://www.example.com).
I would like to add some blog functionality in a subfolder eg: www.example.com/blog/ using wordpress.

Is it possible ? And if so, which configurations do I have to use ?

Thanks !

Submitted by support on Tue, 2017-01-10 15:30

Hello Fabio,

No changes at all required to Price Tapestry installation in the top level. Simply install WordPress in /blog/ and there should be no interference between the two scripts.

When you come to set-up search engine friendly WordPress permalinks, (wp-admin > Settings > Permalinks), the /blog/.htaccess file suggested (if WordPress is not able to create the file itself) should automatically include the appropriate RewriteBase line e.g.

RewriteBase /blog/

Cheers,
David.
--
PriceTapestry.com

Submitted by fabio on Tue, 2017-01-10 15:48

Hi David,

is it possible in this way to use the wordpress plugin and shortcodes? probably in my previous test I messed up the plugin configuration

thanks again

Submitted by support on Tue, 2017-01-10 16:00

Hello Fabio,

Sure - just make sure that WordPress is installed in the same MySQL database as Price Tapestry, so when you create /blog/wp-config.php for

DB_NAME - (same as $config_databaseName)

DB_USER - (same as $config_databaseUsername)

DB_PASSWORD - (same as $config_databasePassword)

There should not be any conflict since (by default) WordPress uses a table prefix of wp_ and Price Tapestry uses pt_ so both scripts can share the same MySQL database, and with WordPress installed in the same database as Price Tapestry you can then proceed to install the plugin as per the standard instructions;

http://www.pricetapestry.org/node/20

As you will only be using shortcodes, you can skip step 6 of the installation, and once installed, your posts / pages can use all available shortcodes as described at;

http://www.pricetapestry.org/node/21

Hope this helps!

Cheers,
David.
--
PriceTapestry.com