0% found this document useful (0 votes)
53 views

Functionality

WordPress is web software that allows users to create websites and blogs. It uses PHP and MySQL to store content in a database and output HTML pages via templates. Key features include easy maintenance, built-in user registration, scheduling posts, and full customization. WordPress code includes PHP, HTML, CSS, JavaScript, and templates that control page layout and presentation. Users can modify templates located in wp-content/themes to customize the interface. Common template files include header.php, index.php, single.php, and footer.php.

Uploaded by

deztiny.213518
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views

Functionality

WordPress is web software that allows users to create websites and blogs. It uses PHP and MySQL to store content in a database and output HTML pages via templates. Key features include easy maintenance, built-in user registration, scheduling posts, and full customization. WordPress code includes PHP, HTML, CSS, JavaScript, and templates that control page layout and presentation. Users can modify templates located in wp-content/themes to customize the interface. Common template files include header.php, index.php, single.php, and footer.php.

Uploaded by

deztiny.213518
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

About WordPress

WordPress is web software you can use to create a beautiful website or blog. The files of WordPress define many useful PHP functions. Some of the functions, known as Template Tags, are defined especially for use in WordPress Themes. Some features about WordPress: 1) Simple easy to maintain 2) Links allow you to create, maintain, and update any number of blog rolls through your administration interface (dashboard) 3) built-in user registration system 4) with no need for regenerating static pages 5) Pages allow you to manage non-blog content easily 6) very robust tools 7) maintains user security 8) Updating your site or its design is as fastas possible, and required server storage space usage is minimal. 9) You can control the presentation of content by editing the templates using your favorite text-editor or IDE 10) Visitors to your site can leave comments on individual entries 11) WordPress lets you schedule posts for some time in the future or lets you backdate a post for some time in the past so that you can write when its convenient for you. 12) Save your unfinished articles, improve them later, publish when you're done. 13) Fully customized with simple drag-and-drop controls on the back end.

Architectural diagram:
User User Interface Templates/ Themes
Template 1

Engine It has major functionality like plug-in, bookmarks, cache, packages, administration tools and server side components.

Database

Database Having all the tables WP_

Template 2 HTML Template 3

Template 4

User is exposed with HTML interface where it got a dashboard (setting page) where user can customize his web page. WordPress is functionally based on PHP and MySQL. The presentation is based on HTML and CSS. Administration is handled in part using Javascript. Heres what you can expect to see in various parts of the WordPress code base: MySQL This is a database that stores all of the information you enter into WordPress. The title, content, and data (author, time, categories, etc) for each post or page are all stored in the database PHP PHP is a web programming language that can do stuff with the data in the database, and use variables, operators, control structures, and functions. The output of PHP is HTML, which your browser then reads. HTML basic internet language. The server throws a bunch of HTML at your browser, your browser displays a web page. CSS CSS organizes and designs the HTML. determined by the CSS Color, size, location, images, etc, are all

JAVASCRIPT is the key enabler for WordPress on the administration side. If you only work with themes and styling, you wont have much interaction with the JavaScript underpinning of the interface.

WordPress is composed of 4 types of building blocks: Regions, loop, templates and metadata. Lets take a closer look at each building block: The Regions: Header, Footer, Sidebar(s), and content are regions The Loop: The loop controls which posts appear in each template. Templates: It got in build templates The Metadata: allows better indexing by search engine tools.

How do you modify or setup a new interface


In the folder wp-content - themes and there are some files and folders: /images style.css header.php index.php single.php footer.php archive.php page.php sidebar.php functions.php

The style.css contains WordPress templates like


body{ font-family: Arial, Helvetica, Georgia, Sans-serif; font-size: 12px; background: #d9d9d9; color: #000000; }

Basic Functionality in editing : Header.php will contain our website logo, as well as custom navigation. Header.php has to first open up the functions.php, and add the necessary code to enable the custom menus. The primary function that is being used is wp_nav_menu, with sort_column, container_class, and theme_location as the arguments being used. What sort_column does is makes sure that the order you pick in your WordPress dashboard is followed. container_class will allow for you to choose the CSS class that you have created to be used to style your menu. Lastly, theme_location just assigns the menu to wherever we choose, which at the moment happens to be primary-menu. As you can see in .nav has made some basic declarations, such as the width of the navigation, background, where it will align, as well as the display value. The index.php will be the home page of our website, and will contain code to include header, footer, and sidebar Now open up the functions.php that we worked on before, and the below code should be added after your menu navigation code.
<div class="sidebar"> <?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?> <?php endif; ?> </div>

The single.php is what will be used for a single post page, and most of the code should look pretty similar since we've already coded up for index.php. When you create a page in WordPress, a different file is used to display the content of what you typed into the page, and that is page.php. The code will look almost completely identical to what we typed up in our single.php, except since it is a page we are going to omit the comments template, and change the post navigation slightly to handle a page instead of a post The category.php will serve as the file that, whenever a user looks at a specific post category, time for posts, or specific author, will be the file that serves up the information to display posts. As with page.php, most of the code here is going to be the exact same as the single.php To finish off our work here, we are going to create our footer.php file, which too will use the #footer that we declared in style.css

You might also like