Wordpress

Articles
Resources
Videos
Themes and plugins
SEO
Questions
Alternatives / Competitions
Plugin development

https://www.sitepoint.com/calypso-desktop-app-wordpress

JM Twitter Cards

How can we install Wordpress?

  1. Download and unzip the WordPress package.
  2. Create a database for WordPress (see below).
  3. Unzip the downloaded file.
  4. Rename wp-config-sample.php to wp-config.php
  5. Edit the file (see Editing wp-config.php) and add your database information.
  6. Upload the WordPress files to the desired location on your web server.
    1. If you want to integrate WordPress into the root of your domain (e.g. http://example.com/), move or upload all contents of the unzipped WordPress directory (excluding the WordPress directory itself) into the root directory of your web server.
    2. If you want to have your WordPress installation in its own subdirectory on your website (e.g. http://example.com/blog/), create the blog directory on your server and upload the contents of the unzipped WordPress package to the directory via FTP. If your FTP client has an option to convert file names to lower case, make sure it's disabled.
  7. Run the WordPress installation script by accessing the URL in a web browser. This should be the URL where you uploaded the WordPress files. If you installed WordPress in the root directory, you should visit: http://example.com/. If you installed WordPress in its own subdirectory called blog, for example, you should visit: http://example.com/blog/
create database dbName;
grant all privileges on dbName.* to dbUsername@"localhost" identified by "somePassword";

Wordpress has a super easy 5 minutes installation procedure. See https://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install

What can we do if we have a theme that support Custom Menus?

  • Change the order of pages
  • Nest pages to create sub-menus
  • Display posts on different pages by creating category pages
  • Add custom links to the navigation menu

How can we create a custom menu?

If the theme that we are using support custom menu, we can:

  1. Go to “Menus” under “Appearance” (left). Again, a list of all your pages should be there; you can choose any or all of them and add them to the menu.
  2. Go to “Primary Navigation” (it should say “top menu,” though you can make others) and save. To change the order of items, simply drag and drop them; and you can create sub- pages by dragging them to the right and indenting them.

What is a widget?

Widget is a fancy word for tools or content that you can display on your site’s sidebar. There are tons of neat widgets to choose from, including the Pages Widget and Search Widget.

How can we create a static home page?

By default, WordPress shows your most recent posts on the front page of your site. But many WordPress users want to have a static front page or splash page as the front page instead. This "static front page" look is common for those who wish to not have a "blog" look to their site, giving it a more CMS (content management system) feel.

When you create a static front page for your site, you must also create a way for WordPress to show your most recent posts in a "virtual directory" called blog, news, or whatever else you choose to call it. This is true whether or not you are actually using Posts in WordPress.

The static front page is a customized Page that displays static content. It can be customized to direct people to featured content, or highlight posts, articles, categories, or contributors.

Creating a virtual static front page does not require editing or coding of files or templates. Using the default configuration for a "static front page" in WordPress does not remove the sidebar or change the look of the entire site, just the content area.

To create the static front page:

  1. Log into the WordPress Administration Panels (wp-login.php).
  2. Create two WordPress Pages from the "Add New Page" panel. If you will not be using WordPress blogging functionality, you can skip the second page. Title the first page "Home" (or another name) as your "static" front page. Set the "Home" template to the default template or any custom template. Do not title your template home.php as this could cause a conflict. Add content you would like to see within the content area of the "Home" page. Publish the Page. Title the second page "Blog" (or you could call it "News", "Articles", etc.). This page will be a place-holder for showing the Posts on your site. Do not use a custom Page template for this page! home.php or index.php will be used to generate this page. DO NOT add content to the Blog Page. Leave it blank. Any content here will be ignored — only the Title is used. Publish the Page.
  3. Go to Administration > Settings > Reading panel. Set 'Front page displays:' to 'a static page' and choose the first page you created above for 'Front page.' If your WordPress site will contain a blog section, set 'Posts page' to the page you created for this above. Otherwise, leave this blank. Save changes.
  4. Enable "Permalinks" to show the "page title" in the address, since /index.php?p=423 defeats the purpose of making a static front page.

How can we add pages?

Many blogs have a single page or two, with one for posts and other for an "About Me" section. But you can add as many page as you like. For example, a restaurant site might need pages for "Menu", "Locations", and "Contact". You can even designate parent pages so that your navigation menus are nested.

What is a Permalink?

Permalinks are the permanent URLs to your individual weblog posts, as well as categories and other lists of weblog postings. A permalink is what another weblogger will use to link to your article (or section), or how you might send a link to your story in an e-mail message. The URL to each post should be permanent, and never change — hence permalink.

How can we install a new theme?

  1. Download the theme, unzip, and place it in the correct location: /wp-content/themes/
  2. Log into the Administration Panel
  3. Click on "Appearance" section on the left and activate the new theme
  4. Click on "Settings" section on the left and choose the "Reading" sub-section. Set the first option — Front page displays — to "Static"
  5. Save your settings

How can we customize a theme?

  1. Log into the Administration panel
  2. Click on Appearance -> Themes
  3. Mouse over the activated theme and click on the Customize button

How can we disable commenting on a page?

If you do not want the comments and the “posted by… on…” displayed to make your website not look like a blog, just delete the following from the index.php (and also delete the same in the files page.php and single.php – if there are these files):

<?php the_time(‘F jS, Y’) ?><?php edit_post_link(‘, Edit’); ?>
<div class=”comm”><?php comments_popup_link(‘Post Comment’, ‘Comments (1)’, ‘Comments (%)’); ?></div>

Note: Backup the files of your theme before editing it, so that you have the original files in case you do something wrong. You might also like to edit some images of the theme like e.g. the header image.

What PHP files are used by Wordpress and what are the purposes for each file?

  1. header.php (title and meta tag, stylesheets, js includes, logo and header, menu bar, opening tags for the rest of the page)
  2. page.php / single.php (articles and comments)
  3. sidebar.php (what to show on the side bar, your own or controlled by wordpress)
  4. footer.php (page closing tags, credit, contact, etc)

How can we add widgets to the sidebar?

  1. Log into wordpress admin panel by going to http://yourblog.com/wp-admin/
  2. Click on Customize
  3. Click on Widgets
  4. Click on Sidebars
  5. Click on the "Add a widget" button

How can we remove a widget from the sidebar?

  1. Log into wordpress admin panel by going to http://yourblog.com/wp-admin/
  2. Click on Customize
  3. Click on Widgets
  4. Click on Sidebars
  5. Expand the widget that you want to remove and click on "Remove"
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License