Support » Fixing WordPress » Mobile Post to Normal Post in Social Media

  • Jeroen


    I’ve created a mobile page for my site using a subdomain.

    normal page:
    mobile page:

    This mobile part of the website contains share functions towards Facebook and Twitter.
    When I integrate the share functions I made use of <?php the_permalink(); ?> but of course this refers towards the mobile. So the output is in Facebook and Twitter.
    But I want this to refer directly to my normal page:

    How can I change or make use of the <?php the_permalink(); ?> in such a way that this refers to my normal page.

    Facebook code I use now: <a href="<?php the_permalink(); ?> &t=<?php wp_title(); ?>" target="blank">
    Twitter code I use now: <a href="" data-url="<?php the_permalink(); ?>" target="blank">

  • The topic ‘Mobile Post to Normal Post in Social Media’ is closed to new replies.