WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] PAGE notes for ADMIN for LANDING PAGES via ADWORDS (5 posts)

  1. CSKnet
    Member
    Posted 4 years ago #

    Hi
    I am running 2.8.6 and have an AdWords account (not AdSense). I have various ads running with different text.

    I'm creating separate landing pages (a WP page) for each ad. Although they are different, the pages will be similar.

    When looking at the "Pages - Edit" listing, I'd like to be able to have a field that describes the page - not for visitors, but just admin.

    For example, one page might have a title "Best-Selling Apples in Georgia" and another might be something like "Georgia's most popular Apples".

    To avoid confusion, I'd like to have a field that says something like "AdWords Landing Page - Ad Title = Best-Selling Apples in Georgia".
    That way I know what that page is for quickly instead of being confused at why I have two very similar sounding page.

    Any plug-ins or ideas that people have out there?

    Many thanks for your help! :)

  2. CSKnet
    Member
    Posted 4 years ago #

    Well, I figured it out on my own after a beer or two :P

    Going to use the plug-in More Fields. Create a new Page Type, based on Page, as AdWords Landing Page or something. Going to create a new field for AdWords Ad Name. Then try to edit the /wp-admin/edit-pages.php to display this new custom field.

    Will let you know if this works, and how I edited the edit-pages.php in a bit, just in case someone else has a similar quandary.

  3. CSKnet
    Member
    Posted 4 years ago #

    Just in case anyone else faces this...

    To add the column headers:
    I edited wp-admin/includes/template.php
    around line 798
    function wp_manage_pages_columns() { and added the two column header names I needed.

    And to pull the values (I figured out I could just use custom fields, but this plug-in makes it easier)...

    In the same file as above, around line 1713, I added case statements for each, with the following:
    case 'field-key-name':
    ?>
    <td <?php echo $attributes ?>><?php
    echo do_shortcode(get_meta('field-key-name'));
    ?></td>
    <?php
    break;
    And voila!

  4. Mark / t31os
    Moderator
    Posted 4 years ago #

    You could have done the same using a plugin, no core edits required.

    1 filter, 1 action, and 2 functions and you'd have the same but without any editting required to the core files.

    add_filter( 'manage_pages_columns' , 'yourfunctionone' );
    add_action( 'manage_pages_custom_column' , 'yourfunctiontwo' , 10, 2);

    There's a nice clear example here.
    scompt.com/blog/archives/2007/10/26/adding-custom-columns-to-the-wordpress-manage-pages-screen

  5. asbarali
    Member
    Posted 4 years ago #

    i m Working with adwords for last 5 Year and finally i have made a masterpiece which contains all the solution about Adwords Soo Do me Feedback soo i can mek it Better for you people to understand

    World of New Adwords

Topic Closed

This topic has been closed to new replies.

About this Topic