Changeset 1870738
- Timestamp:
- 05/08/2018 12:24:34 PM (8 years ago)
- File:
-
- 1 edited
-
sitemap-with-woocommerce/trunk/index.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sitemap-with-woocommerce/trunk/index.php
r1835910 r1870738 13 13 14 14 //Display Posts in Sitemap 15 if ( !function_exists('pagelist_sbwpes_add_stylesheet') ) { 16 function pagelist_sbwpes_add_stylesheet() { 17 wp_enqueue_style( 'page-list-style', plugins_url( '/css/page-list.css', __FILE__ ), false, '4.2', 'all' ); 18 } 19 add_action('wp_print_styles', 'pagelist_sbwpes_add_stylesheet'); 20 } 21 15 22 function sbwpes_sitemap_post() { ?> 16 23 <h2><?php _e('Posts', 'easy-sitemap' ); ?>:</h2> 17 <ul >24 <ul class="sitemap"> 18 25 <?php 19 26 //http://codex.wordpress.org/Function_Reference/get_categories … … 55 62 function sbwpes_sitemap_page() { ?> 56 63 <h2><?php _e('Pages', 'easy-sitemap' ); ?>:</h2> 57 <ul class="sitemap -pages">64 <ul class="sitemap"> 58 65 <?php 59 66 //http://codex.wordpress.org/Function_Reference/wp_list_pages … … 68 75 function sbwpes_sitemap_product() { ?> 69 76 <h2><?php _e('Products', 'easy-sitemap' ); ?>:</h2> 70 <ul >77 <ul class="sitemap"> 71 78 <?php $loop = new WP_Query( array( 72 79 'post_type' => 'product', … … 99 106 $count = count($product_categories);?> 100 107 <h2><?php _e('Category', 'easy-sitemap' ); ?>:</h2> 101 <ul >108 <ul class="sitemap"> 102 109 <?php if ( $count > 0 ){ 103 110 foreach ( $product_categories as $product_category ) { … … 118 125 ); 119 126 $products = new WP_Query( $args ); 120 echo "<ul >";127 echo "<ul class="sitemap">"; 121 128 while ( $products->have_posts() ) { 122 129 $products->the_post(); … … 142 149 143 150 <!-- <h2><?php _e('Products', 'easy-sitemap' ); ?>:</h2> 144 <ul >151 <ul class="sitemap"> 145 152 <?php $loop = new WP_Query( array( 146 153 'post_type' => 'product',
Note: See TracChangeset
for help on using the changeset viewer.