Skip to content

Instantly share code, notes, and snippets.

@jozefini
Forked from artes-visuales/.WordPress
Created August 29, 2016 23:12
Show Gist options
  • Save jozefini/c771b63db3dc14ca3f2f7bbacc16608d to your computer and use it in GitHub Desktop.
Save jozefini/c771b63db3dc14ca3f2f7bbacc16608d to your computer and use it in GitHub Desktop.
WordPress
//Theme Structure
header.php ...................... Header Section
index.php ......................... Main Section
sidebar.php .................... Sidebar Section
single.php ....................... Post Template
page.php ......................... Page Template
comments.php .................. Comment Template
search.php ...................... Search Content
searchform.php ............ Search Form Template
archive.php ................... Archive Template
functions.php ................ Special Functions
404.php .................... Error Page template
style.css .......................... Style Sheet
<?php wp_tag_cloud(); ?>
<?php wp_list_pages(); ?>
<?php get_calendar(); ?>
<?php wp_list_cats(); ?>
<?php echo c2c_custom('test');?>
<?php bloginfo('html_type'); ?>
<ul id="menu">
<li <?php if(is_home()) { ?> class="current-cat"< ?php } ?>>
<a href="<?php bloginfo('home'); ?>">Home</a></li>
< ?php wp_list_categories('title_li=&orderby=id'); ?>
</ul>
<ul id="menu">
<li <?php if(is_home()) { ?> class="current_page_item"< ?php } ?>>
<a href="<?php bloginfo('home'); ?>">home</a></li>
< ?php wp_list_pages('sort_column=menu_order&depth=1&title_li='); ?>
</ul>
< ?php get_header(); ?>
< ?php get_sidebar(); ?>
< ?php get_footer(); ?>
< ?php comments_template(); ?>
<?php bloginfo('url'); ?>
<?php query_posts('category_name=Category&showposts=10'); ?>
<?php while (have_posts()) : the_post(); ?>
// The Stuff... Custom HTML & PHP Code
<?php endwhile;?>
<?php bloginfo('charset'); ?>
<?php bloginfo('description'); ?>
<?php bloginfo('pingback_url'); ?>
<?php bloginfo('rss2_url'); ?>
<?php bloginfo('stylesheet_url'); ?>
<?php bloginfo('template_url'); ?>
<?php if(have_posts());?>
<?php while(have_posts()); the_post();?>
// The Stuff... Custom HTML & PHP Code
<?php else;?>
<?php endif;?>
/*
Theme Name: Wordpress
Theme URI: http://wordpress.org/
Description: Test Blog
Version: 1.6
Author: artesvisuales
Author URI: http://artesvisuales.com
Tags: chuleta, cheat, referencia
*/
<?php timer_stop(1);?>
<?php bloginfo('name'); ?>
<?php bloginfo('wpurl'); ?>
<?php the_search_query();?>
UPDATE wp_options SET option_value = REPLACE ( option_value, 'dominioantiguo.com', 'dominionuevo.com' );
UPDATE wp_posts SET guid = REPLACE ( guid, 'dominioantiguo.com', 'dominionuevo.com' );
UPDATE wp_posts SET post_content = REPLACE ( post_content, 'dominioantiguo.com', 'dominionuevo.com' );
UPDATE wp_postmeta SET meta_value = REPLACE ( meta_value, 'dominioantiguo.com', 'dominionuevo.com' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment