How use Dynamic hyperlink on each wordpress post?

  • Author
  • #2866730


    I built a static button from backend but i want that button get hyperlink from post editor

    I have designed a static design and button on singlepost.php file now i want that when i create a new post then i want to put a hyperlink behind that button from post editor section. how can i do that ?

    how i set hyperlink behind that “Get Deal” button from post page ?

    Get Deal button is static for all post but this button take link when i put from post editor section (so there will be separate dynamic link for each post)

    My static design code for post is :

    <div class=”price_row_grid”>
    <div class=”price_for_grid floatleft”>
    <?php theme_create_btn(‘no’, ‘price’); ?>


    <div class=”floatright vendor_for_grid”>
    <?php if ($price_meta == ‘admin’): ?>
    <?php $author_id = $post->post_author; ?>
    ” title=”<?php the_author_meta(‘display_name’, $author_id); ?>”>
    <?php echo get_avatar($author_id, ’22’); ?>

    <?php elseif ($price_meta == ‘store’): ?>
    <div class=”brand_logo_small”>
    <?php WPSM_Postfilters::re_show_brand_tax(‘logo’); //show brand logo?>
    <?php endif; ?>

    <div class=”price_row_grid”>
    <div class=”price_for_grid floatleft”>
    <p class=”button”>Get Deal</p>


    Now how i set hyperlink behind “Get Deal” from post editor because i just build button which is static for all pages but i want to set different hyperlink for each page.

    The blog I need help with is



    Sorry but you are in the wrong place. These forums are only for blogs/sites hosted by

    WordPress.COM and WordPress.ORG are completely separate and different

    And you should ask in the forums.

    If you don’t have a username on the ORG forums, you’ll need to register one there.


The topic ‘How use Dynamic hyperlink on each wordpress post?’ is closed to new replies.