The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

How to submit a dynamic title into Google search (4 posts)

  1. perthmetro
    Posted 3 years ago #

    How can I use <?php the_title(); ?> and <?php the_category(' '); ?>

    to turn out like this...
    http://google.com.au/search?q=My Awesome Widgets - brown widgets

    Thanks Heaps

  2. Krishna
    Posted 3 years ago #

    Use only your keywords/ key phrases for searches on Google or any other SE's. SE results are based on the textual output, not codes.

  3. perthmetro
    Posted 3 years ago #

    I understand that but i'd like a way whereby i can get the text of the code into the search url, like i can with Google Maps e.g.

    <iframe width="620" height="200" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com.au/maps?q=<?php single_tag_title(); ?>,Western Australia&hl=en&hnear=<?php single_tag_title(); ?>,Western Australia&t=m&ie=UTF8&hq=&z=13&output=embed&iwloc=near"></iframe>

  4. Krishna
    Posted 3 years ago #

    Can you provide a link where the above iframe has been inserted?

Topic Closed

This topic has been closed to new replies.

About this Topic