WordPress.org

Ready to get started?Download WordPress

Forums

change links from homepage (customising theme) (3 posts)

  1. sydneycraig
    Member
    Posted 4 months ago #

    Hey all

    after some help with my site http://www.coolkaboodle.com

    currently I have the images on the homepage go to the product page. in order to increase the CTR to the affiliate links I want to;

    1, make the images link directly to the affiliate page, not to the internal product page on my site.

    2. add the title under each of the images on the homepage and instead have this link to the internal page for that product on my site.

    anyone have any ideas?!!
    thanks

  2. sydneycraig
    Member
    Posted 4 months ago #

    ok, so I have the title added below that links to the internal product page....so 2 is ok...

    for 1 I have the following code for the front page...

    "><?php the_post_thumbnail(get_image_size($size)); ?>

    so somehow I need to swap the permalink, which is the link to the internal product page and draw the affiliate link into here....but I don't know how???

    assume I need to add the affiliate link into each products post and then call it from there??

    anyone??

    thanks

  3. sydneycraig
    Member
    Posted 4 months ago #

    ok, so I have set up a custom field with the affiliate link on a test post....

    so how do I call the custom field...??

    its called "front-page-post"

    code for homepage currently gets the permalink link, so I need to somehow just change the <?php the_permalink(); ?> for front-page-link ??? doesn't work! do I need to do something else??

    "><?php the_post_thumbnail(get_image_size($size)); ?>

Reply

You must log in to post.

About this Topic

Tags

No tags yet.