<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=WordPress</id>
	<title>WordPress - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=WordPress"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=WordPress&amp;action=history"/>
	<updated>2026-05-07T04:45:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=WordPress&amp;diff=2306&amp;oldid=prev</id>
		<title>Kenneth: /* Disable Comments */</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=WordPress&amp;diff=2306&amp;oldid=prev"/>
		<updated>2015-06-15T06:06:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Disable Comments&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== WordPress ==&lt;br /&gt;
&lt;br /&gt;
WordPress - http://wordpress.org/&lt;br /&gt;
&lt;br /&gt;
WordPress Codex has additional information on using WordPress - http://codex.wordpress.org/&lt;br /&gt;
&lt;br /&gt;
== WordPress Informational Sites ==&lt;br /&gt;
&lt;br /&gt;
* WordPress Codex - http://codex.wordpress.org/ (information on using WordPress)&lt;br /&gt;
* http://digwp.com/&lt;br /&gt;
* http://torquemag.io/&lt;br /&gt;
* http://wp.smashingmagazine.com/&lt;br /&gt;
&lt;br /&gt;
== Concepts ==&lt;br /&gt;
&lt;br /&gt;
=== CMS ===&lt;br /&gt;
&lt;br /&gt;
WordPress is a blogging tool and content management system (CMS).&lt;br /&gt;
&lt;br /&gt;
WordPress separates the content, structure and style.&lt;br /&gt;
&lt;br /&gt;
WordPress is generally used to host a Blog.  A Blog is short for web log, and is kind of a journal.&lt;br /&gt;
&lt;br /&gt;
=== Posts and Pages ===&lt;br /&gt;
&lt;br /&gt;
An article written for a blog is called a post.  Posts are stored linear, organized by date/subject/category/tags. Tags organize posts by specific subject, and categories ore more generic.&lt;br /&gt;
&lt;br /&gt;
More static articles are called pages.  Pages are stored hierarchically (parent/child).&lt;br /&gt;
&lt;br /&gt;
Remember: pages are for standalone content, and posts are for blog articles.&lt;br /&gt;
&lt;br /&gt;
Posts and pages can be edited with the Visual Editor, or HTML text editor.&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;front page&amp;#039; is the first page people will see.&lt;br /&gt;
&lt;br /&gt;
=== Tags and Categories ===&lt;br /&gt;
&lt;br /&gt;
Tags organize posts by specific subject, and categories ore more generic.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;A post can live in more than one category and tag, but generally speaking posts usually have more tags than categories, since categories are broad subjects and tags are narrower. This isn’t a rule so much as a convention.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Appearance and Themes ===&lt;br /&gt;
&lt;br /&gt;
Styles are managed through themes.  This is where the CSS is kept.&lt;br /&gt;
&lt;br /&gt;
Themes control the look of the site, and plugins add new functionality. Widgets are a special kind of plugin that goes into areas defined by a theme.&lt;br /&gt;
&lt;br /&gt;
Full Theme CSS (and PHP code) can be modified through Dashboard -&amp;gt; Appearance -&amp;gt; Editor.&lt;br /&gt;
&lt;br /&gt;
Child Theming - changes to code without destroying original code - https://codex.wordpress.org/Child_Themes&lt;br /&gt;
&lt;br /&gt;
=== Plugins ===&lt;br /&gt;
&lt;br /&gt;
Plugins add new functionality. Widgets are a special kind of plugin that goes into areas defined by a theme.&lt;br /&gt;
&lt;br /&gt;
Example plugins: caching (for performance), adding credit card processing, SEO related, etc&lt;br /&gt;
&lt;br /&gt;
&amp;quot;A shortcode is a type of code that you can copy and paste into an area of your site that automatically references a plugin, widget, or theme element.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&amp;quot;Widgets are a type of plugin that you can insert into your site to add a specific extra feature. Widgets tend to perform limited functions and can be slotted into only certain spots on a web page.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Dashboard ===&lt;br /&gt;
&lt;br /&gt;
Content can be managed and organized through the Dashboard.&lt;br /&gt;
&lt;br /&gt;
=== Photos ===&lt;br /&gt;
&lt;br /&gt;
Photos can be managed with the Media Library.  The Media Library is private.&lt;br /&gt;
&lt;br /&gt;
&amp;quot;A featured image is often a panorama-style image that lives at the top of the page or post or a thumbnail image that lives next to the post. This can make your blog look quite appealing.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
=== Menus ===&lt;br /&gt;
&lt;br /&gt;
Menus can be placed in areas marked Theme Locations on a theme.  Pages can be manually or automatically added to a menu.&lt;br /&gt;
&lt;br /&gt;
=== Tagline ===&lt;br /&gt;
&lt;br /&gt;
A slogan or one-sentence description of your site&lt;br /&gt;
&lt;br /&gt;
=== Backend ===&lt;br /&gt;
&lt;br /&gt;
WordPress is built on PHP and MySQL.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
Install dependencies:&lt;br /&gt;
 yum install httpd mysql-server php php-mysql&lt;br /&gt;
&lt;br /&gt;
Download:&lt;br /&gt;
 wget http://wordpress.org/latest.zip&lt;br /&gt;
 mv latest.zip wordpress.zip&lt;br /&gt;
 unzip wordpress.zip&lt;br /&gt;
 # rename folder &amp;#039;wordpress&amp;#039; if desired&lt;br /&gt;
 cd wordpress&lt;br /&gt;
&lt;br /&gt;
Wizard:&lt;br /&gt;
 http://[server]/wp-admin&lt;br /&gt;
 http://[server]/wp-admin/setup-config.php&lt;br /&gt;
&lt;br /&gt;
Config File: (or use the configure web page to create the wp-config.php&lt;br /&gt;
 cp wp-config-sample.php wp-config.php&lt;br /&gt;
 sudo chown apache wp-config.php  # centos&lt;br /&gt;
 # sudo chown www-data wp-config.php  # ubuntu&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* Installing WordPress « WordPress Codex - http://codex.wordpress.org/Installing_WordPress&lt;br /&gt;
&lt;br /&gt;
=== Configure Database ===&lt;br /&gt;
&lt;br /&gt;
Create database:&lt;br /&gt;
 mysql -u root -e &amp;quot;CREATE DATABASE wordpress&amp;quot;&lt;br /&gt;
 mysql -u root -e &amp;quot;grant all on wordpress.* to wordpress@localhost identified by &amp;#039;wordpress&amp;#039;&amp;quot;&lt;br /&gt;
 mysql -u root -e &amp;quot;flush privileges&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 CREATE DATABASE wordpress;&lt;br /&gt;
 GRANT ALL PRIVILEGES ON wordpress.* TO &amp;quot;wordpressusername&amp;quot;@&amp;quot;hostname&amp;quot; IDENTIFIED BY &amp;quot;password&amp;quot;;&lt;br /&gt;
 FLUSH PRIVILEGES;&lt;br /&gt;
&lt;br /&gt;
=== Configuration Wizard ===&lt;br /&gt;
&lt;br /&gt;
Configuration Wizard:&lt;br /&gt;
 # visit: &lt;br /&gt;
 http://[host]/wordpress/&lt;br /&gt;
 # dump to wp-config.php if not created before&lt;br /&gt;
&lt;br /&gt;
Edit Database Settings (wp-config.php):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
define(&amp;#039;DB_NAME&amp;#039;, &amp;#039;database_name_here&amp;#039;);&lt;br /&gt;
define(&amp;#039;DB_USER&amp;#039;, &amp;#039;username_here&amp;#039;);&lt;br /&gt;
define(&amp;#039;DB_PASSWORD&amp;#039;, &amp;#039;password_here&amp;#039;);&lt;br /&gt;
define(&amp;#039;DB_HOST&amp;#039;, &amp;#039;localhost&amp;#039;);&lt;br /&gt;
define(&amp;#039;DB_CHARSET&amp;#039;, &amp;#039;utf8&amp;#039;);&lt;br /&gt;
define(&amp;#039;DB_COLLATE&amp;#039;, &amp;#039;&amp;#039;);&lt;br /&gt;
&lt;br /&gt;
/* generate these using https://api.wordpress.org/secret-key/1.1/salt/ */&lt;br /&gt;
define(&amp;#039;AUTH_KEY&amp;#039;,         &amp;#039;put your unique phrase here&amp;#039;);&lt;br /&gt;
define(&amp;#039;SECURE_AUTH_KEY&amp;#039;,  &amp;#039;put your unique phrase here&amp;#039;);&lt;br /&gt;
define(&amp;#039;LOGGED_IN_KEY&amp;#039;,    &amp;#039;put your unique phrase here&amp;#039;);&lt;br /&gt;
define(&amp;#039;NONCE_KEY&amp;#039;,        &amp;#039;put your unique phrase here&amp;#039;);&lt;br /&gt;
define(&amp;#039;AUTH_SALT&amp;#039;,        &amp;#039;put your unique phrase here&amp;#039;);&lt;br /&gt;
define(&amp;#039;SECURE_AUTH_SALT&amp;#039;, &amp;#039;put your unique phrase here&amp;#039;);&lt;br /&gt;
define(&amp;#039;LOGGED_IN_SALT&amp;#039;,   &amp;#039;put your unique phrase here&amp;#039;);&lt;br /&gt;
define(&amp;#039;NONCE_SALT&amp;#039;,       &amp;#039;put your unique phrase here&amp;#039;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Done! That&amp;#039;s it. The site is now ready to use.&lt;br /&gt;
&lt;br /&gt;
If you need to change settings later, login to the dashboard:&lt;br /&gt;
 http://[host]/wp-admin/&lt;br /&gt;
&lt;br /&gt;
=== Enable Uploads ===&lt;br /&gt;
&lt;br /&gt;
Enable uploads:&lt;br /&gt;
 cd wp-content&lt;br /&gt;
 mkdir uploads&lt;br /&gt;
 sudo chown apache uploads  # centos&lt;br /&gt;
 # sudo chown www-data uploads  # ubuntu&lt;br /&gt;
&lt;br /&gt;
== Themes ==&lt;br /&gt;
&lt;br /&gt;
Using Themes « WordPress Codex - http://codex.wordpress.org/Using_Themes&lt;br /&gt;
&lt;br /&gt;
WordPress › Featured « Free WordPress Themes - https://wordpress.org/themes/&lt;br /&gt;
* WordPress › Pinnacle « Free WordPress Themes - https://wordpress.org/themes/pinnacle/&lt;br /&gt;
&lt;br /&gt;
=== Installing and Activating Themes ===&lt;br /&gt;
&lt;br /&gt;
Install files:&lt;br /&gt;
 cd wp-content/themes&lt;br /&gt;
 wget http://demo.oeey.com/themeforest-6200502-today-news-magazine-wordpress-theme.zip&lt;br /&gt;
 unzip themeforest-6200502-today-news-magazine-wordpress-theme.zip&lt;br /&gt;
&lt;br /&gt;
Activate Theme:&lt;br /&gt;
 http://demo.oeey.com/wp-admin/themes.php&lt;br /&gt;
&lt;br /&gt;
Only one theme may be active at a time.&lt;br /&gt;
&lt;br /&gt;
=== Free Theme marketplaces ===&lt;br /&gt;
&lt;br /&gt;
* WordPress › Featured « Free WordPress Themes - https://wordpress.org/themes/&lt;br /&gt;
* Free WordPress Themes for Blogs at WordPress.com - https://theme.wordpress.com/themes/sort/free/&lt;br /&gt;
&lt;br /&gt;
Note: premium themes cost money&lt;br /&gt;
&lt;br /&gt;
Themes I have used:&lt;br /&gt;
* Misty Lake Theme - https://theme.wordpress.com/themes/misty-lake/&lt;br /&gt;
&lt;br /&gt;
== Pretty URLs with Permalinks ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;By default WordPress uses web URLs which have question marks and lots of numbers in them; however, WordPress offers you the ability to create a custom URL structure for your permalinks and archives. This can improve the aesthetics, usability, and forward-compatibility of your links. A number of tags are available, and here are some examples to get you started.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Permalinks are important for SEO and human readability.&lt;br /&gt;
&lt;br /&gt;
Permalinks will change your URLs from this &amp;lt;code&amp;gt;http://example.com/?p=123&amp;lt;/code&amp;gt; to this &amp;lt;code&amp;gt;http://example.com/sample-post/&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
Doc: http://codex.wordpress.org/Using_Permalinks&lt;br /&gt;
&lt;br /&gt;
Admin URL: http://example.com/wp-admin/options-permalink.php&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Common Settings&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Default 	http://example.com/?p=123&lt;br /&gt;
Day and name 	http://example.com/2015/02/12/sample-post/&lt;br /&gt;
Month and name 	http://example.com/2015/02/sample-post/&lt;br /&gt;
Numeric 	http://example.com/archives/123&lt;br /&gt;
Post name 	http://example.com/sample-post/&lt;br /&gt;
&lt;br /&gt;
Custom Structure 	???&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
Example category/postname:&lt;br /&gt;
&lt;br /&gt;
 /%category%/%postname%/&lt;br /&gt;
 /%category%/%postname%.html  // static site version&lt;br /&gt;
&lt;br /&gt;
Example - Post name:&lt;br /&gt;
&lt;br /&gt;
 Custom Structure: /%postname%/&lt;br /&gt;
&lt;br /&gt;
Example - Category / Post Name:&lt;br /&gt;
&lt;br /&gt;
 Custom Structure: /%category%/%postname%/&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
Apache configuration:&lt;br /&gt;
&lt;br /&gt;
.htaccess:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;IfModule mod_rewrite.c&amp;gt;&lt;br /&gt;
RewriteEngine On&lt;br /&gt;
RewriteBase /&lt;br /&gt;
RewriteRule ^index\.php$ - [L]&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;
RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;
RewriteRule . /index.php [L]&lt;br /&gt;
&amp;lt;/IfModule&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Allow .htaccess in apache.conf:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
        DocumentRoot /www/games-wp&lt;br /&gt;
        &amp;lt;Directory /www/games-wp&amp;gt;&lt;br /&gt;
                AllowOverride All&lt;br /&gt;
        &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
enable apache rewrite module:&lt;br /&gt;
 a2enmod rewrite&lt;br /&gt;
&lt;br /&gt;
== Customization ==&lt;br /&gt;
&lt;br /&gt;
=== Disable Comments ===&lt;br /&gt;
&lt;br /&gt;
Settings &amp;gt;&amp;gt; Discussion &amp;gt;&amp;gt; uncheck &amp;quot;Allow people to post comments on new articles&amp;quot;&lt;br /&gt;
&lt;br /&gt;
This applies to new posts that you will publish from now on. To disallow comments from already publish posts:&lt;br /&gt;
&lt;br /&gt;
Posts &amp;gt;&amp;gt; select them all and &amp;quot;Edit&amp;quot; under bulk actions and hit apply &amp;gt;&amp;gt; choose &amp;quot;do not allow&amp;quot; next to comments and hit update posts. &lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* WordPress › Support » turn off comments on pages by default - https://wordpress.org/support/topic/turn-off-comments-on-pages-by-default&lt;br /&gt;
&lt;br /&gt;
=== Add Posts to Menu ===&lt;br /&gt;
&lt;br /&gt;
&amp;quot;All you have to do is click &amp;quot;Screen Options&amp;quot; while viewing the &amp;quot;Custom Menu&amp;quot; manager and place a check beside &amp;quot;Posts&amp;quot; to show the elusive hidden &amp;quot;Posts&amp;quot; widget. Now you can add &amp;quot;Posts&amp;quot; to your custom menus&amp;quot; [http://wordpress.stackexchange.com/questions/11638/how-to-add-posts-to-custom-menus]&lt;br /&gt;
&lt;br /&gt;
== Plugins ==&lt;br /&gt;
&lt;br /&gt;
=== Embed Widgets in Pages ===&lt;br /&gt;
&lt;br /&gt;
Embed Widgets in Pages or Posts:&lt;br /&gt;
# Install and activate [http://wordpress.org/plugins/amr-shortcode-any-widget/ amr shortcode any widget] plugin&lt;br /&gt;
# Add Widget to Shortcodes Sidebard (Appearance &amp;gt;&amp;gt; Widgets)&lt;br /&gt;
# Add shortcode tag within Page or Post&lt;br /&gt;
&lt;br /&gt;
 [do_widget calendar]&lt;br /&gt;
 [do_widget &amp;quot;recent posts&amp;quot;]&lt;br /&gt;
 [do_widget id=sticky-posts-2]&lt;br /&gt;
&lt;br /&gt;
I find the &amp;quot;id=&amp;quot; to work the best, but hardest to find.&lt;br /&gt;
&lt;br /&gt;
WordPress › amr shortcode any widget « WordPress Plugins - https://wordpress.org/plugins/amr-shortcode-any-widget/&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* How to Add WordPress Widgets in Post and Page Content - http://www.wpbeginner.com/plugins/how-to-add-wordpress-widgets-in-post-and-page-content/&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
To debug:&lt;br /&gt;
&lt;br /&gt;
&amp;quot;enter some garbage in the shortcode [do_widget wtf] and the plugin will offer you a try debug (if you are admin and logged in that is) Click on the &amp;quot;try debug&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
or&lt;br /&gt;
&lt;br /&gt;
&amp;quot;add ?do_widget_debug=1 to the url of the page that contains the [do_widget] shortcode.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
WordPress › amr shortcode any widget - FAQ - https://wordpress.org/plugins/amr-shortcode-any-widget/faq/&lt;br /&gt;
&lt;br /&gt;
=== Hide Widget Title ===&lt;br /&gt;
&lt;br /&gt;
# Install and activate [http://wordpress.org/extend/plugins/remove-widget-titles/ Remove Widget Titles] plugin&lt;br /&gt;
# Add Exclamation (!) to front of Widget title&lt;br /&gt;
&lt;br /&gt;
 !Search&lt;br /&gt;
&lt;br /&gt;
WordPress › Remove Widget Titles « WordPress Plugins - http://wordpress.org/extend/plugins/remove-widget-titles/&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* How to Easily Hide Widget Title in WordPress - http://www.wpbeginner.com/plugins/how-to-easily-hide-widget-title-in-wordpress/&lt;br /&gt;
&lt;br /&gt;
=== Categories for Pages ===&lt;br /&gt;
&lt;br /&gt;
Plugin: (last updated 2014, 20K downloads)&lt;br /&gt;
WordPress › Post Tags and Categories for Pages « WordPress Plugins - https://wordpress.org/plugins/post-tags-and-categories-for-pages/&lt;br /&gt;
&lt;br /&gt;
Article:&lt;br /&gt;
* Categories vs Tags - SEO Best Practices for Sorting your Content - http://www.wpbeginner.com/beginners-guide/categories-vs-tags-seo-best-practices-which-one-is-better/&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
Plugin: (last updated 2015, 2K downloads)&lt;br /&gt;
* WordPress › Add Category to Pages « WordPress Plugins - https://wordpress.org/plugins/add-category-to-pages/&lt;br /&gt;
&lt;br /&gt;
Article:&lt;br /&gt;
* How to Add Categories and Tags to Pages in Wordpress - http://spicemailer.com/wordpress/add-categories-tags-pages-wordpress/&lt;br /&gt;
&lt;br /&gt;
== Issues ==&lt;br /&gt;
&lt;br /&gt;
== keywords ==&lt;br /&gt;
&lt;br /&gt;
[[Category:PHP]]&lt;br /&gt;
[[Category:Web Development]]&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>