This commit is contained in:
g
2020-08-13 14:48:16 +03:00
parent a72e5c32e3
commit 1f4ab5490a
3 changed files with 46 additions and 1 deletions

View File

@@ -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;
}
}

View 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();

View 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();