Root url for website --------------------------------------------------------- title of specific post/page --------------------------------------------------------- Title of site --------------------------------------------------------- Site description --------------------------------------------------------- stylesheet folder location --------------------------------------------------------- style.css file location --------------------------------------------------------- pingback url --------------------------------------------------------- Template folder path --------------------------------------------------------- wordpress site version --------------------------------------------------------- atom url --------------------------------------------------------- rss2 url --------------------------------------------------------- Html version --------------------------------------------------------- charset parameter --------------------------------------------------------- ========================================================== Codes for Other Template Files Codes below will be seen across all template files such as single.php, index.php, page.php and so on. Its really easy to call on these codes to make your theme dynamic when coding it. ========================================================== Displays Header.php file content --------------------------------------------------------- Displays Footer.php file content --------------------------------------------------------- Displays Sidebar.php file content --------------------------------------------------------- Displays Comment.php file content --------------------------------------------------------- Displays the Content of the Post --------------------------------------------------------- Displays the excerpt that is used in Posts --------------------------------------------------------- Title of the Specific Post --------------------------------------------------------- Link of the Specific Post --------------------------------------------------------- Category of a Specific Post --------------------------------------------------------- Author of the Specific Post --------------------------------------------------------- ID of a Specific Post --------------------------------------------------------- – Edit link for a Post --------------------------------------------------------- URL of the Next Page --------------------------------------------------------- URL of the Previous Page --------------------------------------------------------- Lists all links in Blogroll --------------------------------------------------------- Lists all Pages --------------------------------------------------------- List Archive for the Site --------------------------------------------------------- Lists all Categories --------------------------------------------------------- Displays the Built in Calendar --------------------------------------------------------- Displays Register Link --------------------------------------------------------- Displays Login/Logout Link only to Registered Users --------------------------------------------------------- the date is ’02-15-14′ --------------------------------------------------------- link to comments of post --------------------------------------------------------- edit link of post/page --------------------------------------------------------- links from blogroll --------------------------------------------------------- list all pages --------------------------------------------------------- list all categories --------------------------------------------------------- url to next post --------------------------------------------------------- url to previous post --------------------------------------------------------- next and previous post link --------------------------------------------------------- rewinds post for a second loop --------------------------------------------------------- admin meta data --------------------------------------------------------- ========================================================== The Loop (Basic Loop) ========================================================== ========================================================== The Loop (Advance Loop) ==========================================================
Sorry, but you are looking for something that isn't here.
========================================================== Navigation Menu Navigation Menu (Default) ========================================================== Navigation Menu (Specific) --------------------------------------------------------- 'Project Nav' )); ?> Navigation Menu (Category Based) --------------------------------------------------------- Navigation Menu (Page Based) --------------------------------------------------------- Comments popup link --------------------------------------------------------- if statemant for post find/search --------------------------------------------------------- while statemant --------------------------------------------------------- End while statemant --------------------------------------------------------- End if statemant --------------------------------------------------------- ========================================================== Get Featured Image URL with Proper size Array ========================================================== ID), array( 900,900 ), false, '' ); echo $src[0]; ?> Feature iamge query with direct hyperlink --------------------------------------------------------- ID); preg_match ('/src="(.*)" class/',$thumbnail_id,$link); echo $link[1]; ?> Feature iamge query with direct link for Lightbox --------------------------------------------------------- ID); preg_match ('/src="(.*)" class/',$thumbnail_id,$link); echo $link[1]; ?> ========================================================== Display all Custom Texonomies list ==========================================================
--User nicename: '.$curuser->user_nicename .', display name: '. $curuser->display_name . ', number of posts in category '.$my_cat_id.': ' .$author_post_count .', link to all posts by this author: user_nicename ) . '" ' . '>' . $curuser->user_nicename .'
'; } } ?> Another Easy code for author list ---------------------------------------------------------- ========================================================== Count all the post for a category ========================================================== posts LEFT JOIN $wpdb->term_relationships ON($wpdb->posts.ID = $wpdb->term_relationships.object_id) LEFT JOIN $wpdb->term_taxonomy ON($wpdb->term_relationships.term_taxonomy_id = $wpdb->term_taxonomy.term_taxonomy_id) WHERE $wpdb->term_taxonomy.term_id = 5 AND $wpdb->term_taxonomy.taxonomy = 'category' AND $wpdb->posts.post_status = 'publish' AND post_author = '1' "; $user_count = $wpdb->get_var($counter); echo $user_count; ?> ========================================================== Conditional Text for Logged user and guest in wordpres ========================================================== ========================================================== Activate ReduxFramework Admin Panel ========================================================== // Include the Redux theme options Framework if ( !class_exists( 'ReduxFramework' ) ) { require_once( dirname( __FILE__ ) . '/ReduxCore/framework.php' ); } // Tweak the Redux framework, Register all the theme options, Registers the wpex_option function if ( !isset( $redux_demo ) ) { require_once( dirname( __FILE__ ) . '/functions/admin-config.php' ); }