The Loop The WordPress loop is PHP code that displays WordPress posts. The loop is used in WordPress themes to display a list of posts in a web page. Inside the loop there are some functions that are run by default to display posts. Theme developers can format the output by using template tags to … Continue reading WordPress Loop And Query
Category: PHP CMS
A content management system (CMS) is a software application that enables users to create, edit, collaborate on, publish and store digital content.
Widget Code: Start by creating a new .php file in your wp-content/plugins directory. Call your file whatever you like, but I’m going with random-post-widget.php Paste the following into the file and save. Feel free to change the section at the top with my name in it, but don’t adjust the rest of the code … Continue reading How To Create WordPress Widgets
What is POST in WORDPRESS How to Handle WORDPRESS Post A CMS can have different type of content and wordpress is a CMS so it also holds different content that content is called post. All those posts are stored in same place in wordpress i.e. in the wp_post table in the database you created at … Continue reading WordPress Post
What Are WordPress Hooks? Hook is a certain location in the WordPress code which allows you to attach or run your own code. Another way of describing WordPress hooks is that they are sort of like designated areas within the WordPress code which give you the opportunity to execute your own functions. If you decided … Continue reading WordPress Action Hooks and Filter Hooks
Simple Shortcodes: Shortcode functions can be added to plugin code or your theme’s functions.php file. If it’s the latter, I’d recommend creating a separate shortcodes.php file, then adding include('shortcodes.php'); to functions.php. Here’s a basic “Hello World” example: function HelloWorldShortcode() { return '<p>Hello World!</p>'; } add_shortcode('helloworld', 'HelloWorldShortcode'); Enter [helloworld] somewhere within a page or post to output the result of … Continue reading How to Create Your Own WordPress Shortcodes
The abbreviation CRUD comes from Create, Update, Update, Delete – which, in other words, means a data management system. In web terms it would most probably mean a piece of software which allows you to manage entries in your database, usually MySQL, PostgreSQL, MS SQL, or other. A great, and, maybe, the most popular example … Continue reading Creating a CRUD system in WordPress
What is Joomla? Joomla is a free system for creating websites. It is an open source project, which, like most open source projects, is constantly in motion. It has been extremely successful for seven years now and is popular with millions of users worldwide. The word Joomla is a derivative of the word Jumla … Continue reading Joomla Introduction
Basic Template Files File Name Description style.css style sheet file index.php home page file header.php header content file single.php single post page file archive.php archive/category file searchform.php search form file search.php search content file 404.php error page file comments.php comments template file footer.php footer content file sidebar.php sidebar content file page.php single page file front-page.php … Continue reading WordPress Cheatsheet
What is WordPress? WordPress is an online, open source website creation tool written in PHP. But in non-geek speak, it’s probably the easiest and most powerful blogging and website content management system (or CMS) in existence today. It is the most popular blogging system in use on the Web. WordPress was used by more than … Continue reading WordPress Introduction