WP Manifestindependent plugin directory
manifest / content / include-custom-content

Include Custom Content

Inserting custom content into wordpress posts

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/drared/include-custom-content/archive/refs/heads/master.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Inserting custom content into wordpress posts

Purpose: A wordpress plugin to allow content to be written in separate files rather than in the wordpress text editor which can be quite limiting. The plugin allows separate html content, js scripts and css rules to be added. The html content is added before the post_content. Normal use has the wordpress text editor containing no content with the content being contained in the separate custom content folder. This allows direct editing of the html file with a text editor such as notepad++ or VS Code. Any custom CSS files (1 per post) are linked to within the header of the page. JS scripts are inserted in the footer.

General stucture: A folder named 'Custom' is added to the selected theme folder. Within this folder, three separate folders are added: custom-content, custom-css, custom-js

Hence the structure is:

Custom/
├── custom-content/
├── custom-css/
└── custom-js/

Custom files are adding in each of the respective files with the post slug identifying the file to use. Example, for post with slug: 'example-post' Custom content file would be named: example-post.php CSS file would be: example-post.css and JS file would be example-post.js