• I’d like to get the post ID of the most recently modified post, so I can put it in here:

    <head profile="https://gmpg.org/xfn/11">
    	<meta http-equiv="content-type" content="text/html;charset=utf-8" />
    	<?php $newest_post_id = $posts[0]->ID ?>
    	<meta http-equiv="REFRESH" content="0;url=https://moq.fi/?p=<?php echo $newest_post_id ?>" />
    	<title>MOQ.FI</title>
    </head>

    This is the head of my index.php. I just want it to redirect to the most recently modified post, but now it directs to the most recently published post…

    thank you

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How do I get the post ID of the most recently modified post’ is closed to new replies.