Guest User

miriam

a guest
Sep 15th, 2014
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. index.php raiz wordpress
  2. <?php
  3. /**
  4. * Front to the WordPress application. This file doesn't do anything, but loads
  5. * wp-blog-header.php which does and tells WordPress to load the theme.
  6. *
  7. * @package WordPress
  8. */
  9.  
  10. /**
  11. * Tells WordPress to load the WordPress theme and output it.
  12. *
  13. * @var bool
  14. */
  15. define('WP_USE_THEMES', true);
  16.  
  17. /** Loads the WordPress Environment and Template */
  18. require( dirname( __FILE__ ) . '/wp-blog-header.php' );
  19.  
  20. ---
  21. index.php do thema
  22.  
  23. <?php
  24. /**
  25. * The main template file.
  26. *
  27. * This is the most generic template file in a WordPress theme
  28. * and one of the two required files for a theme (the other being style.css).
  29. * It is used to display a page when nothing more specific matches a query.
  30. * E.g., it puts together the home page when no home.php file exists.
  31. * Learn more: http://codex.wordpress.org/Template_Hierarchy
  32. *
  33. * @package Pictorico
  34. */
  35.  
  36. get_header(); ?>
  37.  
  38. <div id="primary" class="content-area">
  39. <main id="main" class="site-main" role="main">
  40.  
  41. <?php if ( have_posts() ) : ?>
  42.  
  43. <?php /* Start the Loop */ ?>
  44. <?php while ( have_posts() ) : the_post(); ?>
  45.  
  46. <?php
  47. /* Include the Post-Format-specific template for the content.
  48. * If you want to override this in a child theme, then include a file
  49. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  50. */
  51. get_template_part( 'content', 'home' );
  52. ?>
  53.  
  54. <?php endwhile; ?>
  55.  
  56. <?php pictorico_paging_nav(); ?>
  57.  
  58. <?php else : ?>
  59.  
  60. <?php get_template_part( 'content', 'none' ); ?>
  61.  
  62. <?php endif; ?>
  63.  
  64. </main><!-- #main -->
  65. </div><!-- #primary -->
  66.  
  67. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment