forked from LiveCarta/LiveCartaWP
@@ -13,6 +13,8 @@ add_action('after_setup_theme', function () {
|
|||||||
*/
|
*/
|
||||||
add_theme_support('title-tag');
|
add_theme_support('title-tag');
|
||||||
|
|
||||||
|
add_theme_support( 'post-thumbnails' );
|
||||||
|
|
||||||
register_nav_menus([
|
register_nav_menus([
|
||||||
'top' => __('Top Menu', 'lawcarta'),
|
'top' => __('Top Menu', 'lawcarta'),
|
||||||
'bottom' => __('Bottom Menu', 'lawcarta'),
|
'bottom' => __('Bottom Menu', 'lawcarta'),
|
||||||
@@ -235,3 +237,6 @@ function get_lawcarta_ga_config(){
|
|||||||
}
|
}
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
21
htdocs/wp-content/themes/lawcarta/page-blog.php
Normal file
21
htdocs/wp-content/themes/lawcarta/page-blog.php
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
<?php
|
||||||
|
get_header();
|
||||||
|
$posts = get_posts();
|
||||||
|
foreach ($posts as $post):
|
||||||
|
?>
|
||||||
|
<?=$post->ID ?>
|
||||||
|
<?=get_the_title($post); ?>
|
||||||
|
<?=get_post_meta($post->ID,'title2',true); ?>
|
||||||
|
<?=get_the_post_thumbnail_url(); ?>
|
||||||
|
<?=get_permalink(); ?>
|
||||||
|
<?php $categories = get_the_category();
|
||||||
|
foreach($categories as $category):?>
|
||||||
|
<?=$category->term_id; ?>
|
||||||
|
<?=$category->slug; ?>
|
||||||
|
<?php endforeach;?>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
endforeach;
|
||||||
|
get_footer();
|
||||||
19
htdocs/wp-content/themes/lawcarta/single.php
Normal file
19
htdocs/wp-content/themes/lawcarta/single.php
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
get_header();
|
||||||
|
$post = get_post();
|
||||||
|
?>
|
||||||
|
<?=$post->ID ?>
|
||||||
|
<?=get_the_title($post); ?>
|
||||||
|
<?=get_post_meta($post->ID,'title2',true); ?>
|
||||||
|
<?=get_the_post_thumbnail_url(); ?>
|
||||||
|
<?=get_permalink(); ?>
|
||||||
|
<?php $categories = get_the_category();
|
||||||
|
foreach($categories as $category):?>
|
||||||
|
<?=$category->term_id; ?>
|
||||||
|
<?=$category->slug; ?>
|
||||||
|
<?php endforeach;?>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
get_footer();
|
||||||
Reference in New Issue
Block a user