• Resolved wxwx

    (@wxwx)


    hi folks..

    I created one external php file. here the example code hello.php

    function hello($title, $cfield)
        {
    .....
        }
    
      $title = get_the_title();
    	$cfield = get_post_meta($post->ID, "keyword", true);
      $text = hello($title, $cfield);
    
       echo $text;

    this code will load by ajax external content. my problem here how to get a correct id for get_the_title and get_post_meta.

    let me know the hints to call a correct ID for external file.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get_the_title external php’ is closed to new replies.