WordPress.org

Support

Support » How-To and Troubleshooting » How to submit a dynamic title into Google search

How to submit a dynamic title into Google search

  • perthmetro

    @perthmetro

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Krishna

    @1nexus

    Member

    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.

    perthmetro

    @perthmetro

    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>

    Krishna

    @1nexus

    Member

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to submit a dynamic title into Google search’ is closed to new replies.