forked from LiveCarta/LiveCartaWP
LAW-3559
This commit is contained in:
@@ -13,6 +13,8 @@ add_action('after_setup_theme', function () {
|
||||
*/
|
||||
add_theme_support('title-tag');
|
||||
|
||||
add_theme_support( 'post-thumbnails' );
|
||||
|
||||
register_nav_menus([
|
||||
'top' => __('Top Menu', 'lawcarta'),
|
||||
'bottom' => __('Bottom Menu', 'lawcarta'),
|
||||
@@ -234,4 +236,7 @@ function get_lawcarta_ga_config(){
|
||||
$res = LIVECARTA_GA_CONFIG;
|
||||
}
|
||||
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