Skip to content

This wordpress plugin auto-populates the text and body fields of a new post with a user-defined string.

Notifications You must be signed in to change notification settings

makeaweli/wordpress-default-text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wordpress Default Text

Default Text is a a helpful workflow tool:

  • Enforce editorial standards for title and body styles
  • A quick reference for content editors that aren't regular contributors

Variables

Variables are available to customize your default text strings. You can create your own custom variables also! Consult the FAQ for more details.

Multisite

Default Text is also multisite compatible as it has been designed for a multisite environment.

Installation

  1. Upload default-text.zip to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress

Frequently Asked Questions

I want a page/post to have a blank body, i.e. no text

Simply add a space or other invisible character. One is enough.

I'd like to include my own custom variables

Default Text checks for the existance of a function named default_text_gemini before outputting title or body text.

Either inclue this function in your themes functions.php file or in a custom plugin.

Make sure that the function outputs an associative array in the following format: array('$variable'=>'value');

Screenshots

  1. Animated demo of functionality including use of custom variables.

  2. Settings view in it's entirety.

Changelog

1.04

  • Cleaned-up readme and added screenshot of settings

1.03

  • Created function default_text_string to fix other conditions with bug found by yoramzara.

1.02

  • Default argument values included with default_text_title and default_text_body functions. Bug found by yoramzara.

1.01

  • Animated GIF screenshot provided

1.0

  • Initial version

Upgrade Notice

1.04

  • Documentation more user-friendly with exanded FAQ and screenshot of settings. No code/bug fixes.

1.03

  • Further fixes for issue where error thrown on certain php installations if default argument for a function is not defined.

1.02

  • Fix issue where error thrown on certain php installations if default argument for a function is not defined.

1.01

  • Animated GIF screenshot provided

1.0

  • Initial version

About

This wordpress plugin auto-populates the text and body fields of a new post with a user-defined string.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages