Use WordPress as a portal CMS

Which CMS should I use for my website? The answer is unexpected, but this is a fact, the simplest is Wordpress. This software, originally developed for blogging, has evolved using static pages and has ample customization options for developing most sites, including e-commerce sites or an internet encyclopedia.

WordPress can be used as a site's portal or specialized CMS system as a magazine, selecting options, changing code elements, adding plugins or a block through theme installation.
With version 3.0, you can create your own pages containing fields other than title, ticket, keywords, date.

Selection of parameters

Static pages

Use this page as your home page. Indeed, Wordpress supports two types of content: static pages and tickets, where each new article hunts for the other from home, the oldest.
Thus, you can create pages in addition to tickets to provide visitors with stable information, but you can also create a site of stable pages (the content of which can develop, but which remain directly accessible through links on the home page) with news posts in the category "news."

New Home Page

This is explained in the Wordpress documentation (see below). You can create a special home page.
In the "read" tab of the parameters, it is proposed to place a static page as a home page.
You can delete comments from the home page using the options menu on the right in edit mode. But to remove any link to comments, you need to edit the theme code.

Side panel

It contains widgets such as categories, links, etc. They can be selected and classified in the desired order. The "text" widget can be created by the user.

Insert Adsense or JavaScript code

To, for example, insert Adsense declarations into the body of an article at an optimal location and then edit it, you need to disable internal reformatting and the visual editor.

To add Analytics tokens, since they can be placed on the sidebar or in a case, simply place the JavaScript code in the appropriate template (usually sidebar.php or footer.php).

Edit Code

The code will be changed to a template. If the Classic theme was selected, then, for example, the index.php file that displays the articles is changed:

wp-content/themes/classic/index.php

Conditional functions will be very useful for customizing pages depending on their type:

is_page()   // page statique?
is_category() 
is_archive()
is_search()
is_404()     // page d'erreur?

We put the state tests in the main loop.

For example, to delete the text of a comment on static pages, in particular on the home page, the index.php file is written:

<?php if (!is_page()) comments_template(); // Get wp-comments.php template ?>

To get paging without a specialized plugin, you can add a break in the principage loop after the first post is displayed.

Portal or e-commerce plugins

Many plugins are dedicated to presentation or indirectly modify the code to make it possible to create more complex pages.

Subjects

The final step is to install a new theme, which from the very beginning was designed to use the site as a portal, for example webzine or any other dedicated application.
A few examples of freely used topics:

Wordpress is a CMS. Using offline software, such as Live Writer, also makes it easier to create more complex pages with tables, videos and image galleries.

See also