WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Pete
    Member
    Posted 1 year 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
    Volunteer Moderator
    Posted 1 year 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. Pete
    Member
    Posted 1 year 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
    Volunteer Moderator
    Posted 1 year 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