Meta tags

Home Forum WordPress Plugins Meta tags

This topic is: resolved
  • #5886

    akash
    Participant

    So how would i have the movie page have meta tags i need the keyword and description

    i know how to add it but i need to know what code i use to make the title od the movie and tv show show up on the keyword like (Watch “title of movie” online) what do i use so the title who up

    and for description i would like the plot of the movie as description

    can you help out with that?

    #5889

    admin
    Keymaster

    if you are on movie page or tv show page you can use function :
    get_the_title()
    It will give you current movie or tv show name

    and to get plot you can use function
    get_the_content

    so you can put like <?php echo(get_the_title());?> or <?php echo(get_the_content());?>

    #5892

    akash
    Participant

    <?php echo(get_the_title());?> this worked but the plot <?php echo(get_the_content());?>is not working

    #5893

    admin
    Keymaster

    Please open single-movies.php and you will see first line as
    <?php

    make it
    <?php the_post();

    do the same with
    single-shows.php

    then you can use
    <?php echo(@get_the_title());?>
    and
    <?php echo(@get_the_content());?>

    #5894

    akash
    Participant

    yep its working thanks

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Meta tags
Your information: