Answers for "get_post PHP"

PHP
3

get post in php

$data = json_decode(file_get_contents('php://input'), true);

// you have all in an array
Posted by: Guest on August-27-2021
1

wordpress get post by id

$post   = get_post( 123 ); // Where 123 is the ID
$output =  apply_filters( 'the_content', $post->post_content );
Posted by: Guest on October-13-2020
0

get post php

<?php
var = $_POST['var'];
echo var;
  
// YOUR METHOD IN HTML MUST BE IN POST

<form method="post">
	<input type="text" name="var">  
</form>
Posted by: Guest on August-05-2021

Browse Popular Code Answers by Language