Results 1 to 2 of 2

Thread: echo post title

  1. #1
    Thread Starter
    Member chazmo's Avatar
    Join Date
    Aug 2010
    United Kingdom
    Thanked 1 Time in 1 Post

    echo post title

    So I'm using event tracking and trying to echo the post title in the event tracking by using
    PHP Code:
    <?php the_title(); ?>
    but while returning the title it also returns other info

    for the post called 'write for shizazzle'

    it returns

    'Write for Shizazzle<input type='hidden' class='jr_fx_days_left_pid' value='-'>'

    how can I just have 'write for shizazzle'

    Full code below

    PHP Code:
    <p><input type="submit" class="submit" name="apply_to_job" onClick="_gaq.push(['_trackEvent', 'Apply-test', 'Apply Form', '<?php the_title(); ?>'  ])" value="<?php _e('Apply for Job'APP_TD); ?>" /></p>



  2. #2
    jobortunity's Avatar
    Join Date
    Oct 2011
    Kitchener, Ontario
    Thanked 11 Times in 9 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 6
    Last Post: February 14th, 2013, 12:56 PM
  2. why menu title not display full title post
    By fauziahmad in forum Help Using ClassiPress
    Replies: 8
    Last Post: December 29th, 2012, 11:34 PM
  3. Help <?php echo get_post_meta($post->ID, 'cp_zipcode', true); ?>
    By jonduckett in forum ClassiPress General Discussion
    Replies: 1
    Last Post: August 18th, 2012, 09:54 AM
  4. How to change post title and categories in the post?
    By murty473 in forum ClassiPress General Discussion
    Replies: 1
    Last Post: September 21st, 2011, 08:14 AM
  5. How can i change the post-title to post-id in ads URL?
    By dailysoft in forum ClassiPress General Discussion
    Replies: 29
    Last Post: May 2nd, 2011, 10:12 PM