This Wordpress plugin provides the SEO and Routing functionality for a Styla magazine.
-
Install and activate the following plugin to allow php in pages: https://wordpress.org/plugins/allow-php-in-posts-and-pages/
-
Copy the entire StylaMagazine folder into your wp-content/plugins folder
-
Activate the StylaMagazine plugin in Wordpress
-
Go to Settings -> StylaMagazine and configure the plugin (see Configuration). Click "Save Changes" when ready.
-
Add
[php] styla_body(); [/php]on the page the magazine should be placed -
Go to Settings -> Permalinks and hit the "Save Changes" button (you don't need to change anything on this site) - this will refresh internal redirects for all magazine urls (e.g. /story/asdf-1234)
Please do not create any subpages in your CMS or directories for your magazine. The plugin itself will take care of setting up the /magazine/ (or any other) page on which the magazine will appear and of the roouting as well.
- Domain - Domain name of the magazine to embed and provided by Styla. If unclear please contact support@styla.com
- Magazine Root Path - URL path to your magazine. Example: The rooth path for mydomain.com/magazine would be "magazine". Leave empty if your magazine is supposed to be displayed on your front page (e.g. mydomain.com/)
- Magazine Page Slug - Slug of the (front-)page with the
[php] styla_body(); [/php]snippet on it. Only required when the Magazine Root Path is empty. The page slug can be found in the "Quick Edit" form of the page, see this example:
- SEO Server - Server used to fetch SEO information for the magazine and it's content. Should not be changed without double-checking with Styla.
- Content Server - Server providing Styles and Javascript for the magazine and it's content. Should not be changed without double-checking with Styla.
- Version Server - Server providing the current Version for the magazines Styles and Scripts. Should not be changed without double-checking with Styla.
- now using cURL instead of
file_get_contents()
- Accepts pagination offset parameter
- 404 status header and page on non existent offsets/pages
- replace magazine title only on magazine pages
- updated the plugin to work with WPML Multilingual CMS
- using wordpress redirects instead of .htaccess redirects
- removed duplicates SEO attributes in
- 1.0.8 - now using CDN integration
- 1.0.7 - integrated SEO API
- 1.0.6 - Removed magazine path for the seo fetch
- 1.0.5 - Only fetch content, set statuscode and output styla magazine if magazine path matches
- 1.0.4 - Fixed seo problems for story and account urls
- 1.0.3 - Replaced file_get_contents with curl (removed 'allow__url_fopen' dependency from php.ini)
- 1.0.2 - Remove addslashes inside get_web_page method
- 1.0.1 - Allow to run magazine on a sub path
- 1.0.0 - Initial release
- The plugin uses the Wordpress cache which is not persist by default (see: https://codex.wordpress.org/Class_Reference/WP_Object_Cache#Persistent_Caching)
