Category: WP Functions

STI_wp_API

WordPress Filesystem class and connect

Initialize the WordPress Filesystem class and connect to the file system: The heart of the WordPress Filesystem API is the WP_Filesystem function. It loads and initializes the appropriate transportation class, stores an obtained instance...

Wordpress Database

WordPress Database

Interfacing With the Database WordPress provides a class of functions for all database manipulations. The class is called wpdb . WordPress provides a global variable, $wpdb, which is an instantiation of the class already...

STI_wp_function

Basic comment template tags

Template Tag Description <?php comment_ID(); ?> the ID of a comment <?php comment_author(); ?> the author of a comment <?php comment_author_link(); ?> the author of a comment, wrapped with a link to his website...

STI_wp_function

WordPress navigation menu

Displays a navigation menu create din the appearance–Menus panel. if not given a theme_location parameter, the function displays the menu matching ID,slug,or name given by the menu parameter,if that menu has atleast 1 item,...

STI_wp_function

Function File

One way to change the default behaviors of WordPress is using a file named functions.php. It goes in your Theme’s folder. The functions file behaves like a WordPress Plugin, adding features and functionality to...

STI_wp_function

Conditional Tags and The Loop

The Conditional Tags can be used in your Template files to change what content is displayed and how that content is displayed on a particular page depending on what conditions that page matches. These tags...

STI_wp_function

Author tags

The_author() The author of a post can be displayed by using this Template Tag. This tag must be used within The Loop. Get_the_author() Retrieve the post author. This tag must be used within The...

STI_wp_function

Category tags

The_category() Displays a link to the category or categories a post belongs to.This tag must be used within The Loop. <?php the_category( $separator, $parents, $post_id ); ?>  Parameters $separator (optional) Text or character to display between each category link. By...

STI_wp_function

Post tags

the_title() Displays or returns the title of the current post. Parameters $before (optional) Text to place before the title. Default: None $after (optional) Text to place after the title. Default: None $echo (optional) Display...

STI_wp_function

General tags

Bloginfo() If you need the values for use in PHP , use get_bloginfo().Displays information about your site, mostly gathered from the information you supply in your User Profile and General Settings WordPress Administration Screens....