add files

This commit is contained in:
Andrey Kuvshinov
2025-07-09 21:21:17 +03:00
commit 8fc8cbae32
596 changed files with 207566 additions and 0 deletions

26
lastone.php Normal file
View File

@@ -0,0 +1,26 @@
<?php
/*
Template Name: Last one
*/
//die;
$count = (int)get_option('lastonenode_count');
$count = $count+1;
update_option('lastonenode_count', $count);
$posts = get_posts(
array(
'post_status' => 'publish',
'post_type' => array('anew','profile_article','yellow'),
'posts_per_page' => 1,
'orderby' => 'date',
'order' => 'DESC'
)
);
//wp_redirect('https://profile.ru/archive/vremya-proverennogo-123132/',301);
wp_redirect(get_permalink($posts[0]), 301);
exit;
?>