• Resolved wobigon

    (@wobigon)


    Hiya,

    I’ve been trying to direct the “learn more” button so its link goes to the post page. Right now the ‘learn more’ button just takes me back to my home page.

    –> here is an example of the type of page im trying to get to through the ‘learn more’ button. It is the permalink adress on the portfolio post editor page | https://blog.t2q.com.au/wpos_portfolio/rock-and-a-hard/

    –> Right now, clicking the ‘learn more’ button takes me here… to my home page . | https://blog.t2q.com.au/. This is where I’ve pasted the plugins shortcode.

    —————
    I have access to the .php file (wp-pap-gallery-slider.php), as well the line that may need editing:

    ” class=”wppap-project-url-btn” target=”_blank”>Learn More

    •if this is the cause of the problemm , could you please tell me what php code to type in and where to put it to get the learn more button working again.

    •Also, if you have any other ideas of how to fix the button, please let me know.

    Thanks, I look forward to your response.

    • This topic was modified 7 years, 1 month ago by wobigon.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter wobigon

    (@wobigon)

    Its okay, I figured it out. I changed THIS php coding line in wp-pap-gallery-slider.php file :

    
    <a href="<?php echo $project_url; ?>" class="wppap-project-url-btn" target="_blank">Learn More</a>

    TO THIS :

    
    <a href="<?php the_permalink() ; ?>" class="wppap-project-url-btn" target="_blank">Learn More</a>

    AND NOW it takes me to the portfolio post permalink adress. Presto. Hopefully this helps others having the same problem. all that was changed was echo $ project_url TO the_permalink ()

    • This reply was modified 7 years, 1 month ago by wobigon.
    • This reply was modified 7 years, 1 month ago by wobigon.
    • This reply was modified 7 years, 1 month ago by wobigon.
    • This reply was modified 7 years, 1 month ago by wobigon.
    • This reply was modified 7 years, 1 month ago by wobigon.
    • This reply was modified 7 years, 1 month ago by wobigon.
    • This reply was modified 7 years, 1 month ago by wobigon.
    Plugin Author Anoop Ranawat

    (@anoopranawat)

    Hello,

    Thank you for using our Plugin,

    We got your Query first of all, conform us you wont to go on post details page(post single) page.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘“Learn more” button wont link to post page.’ is closed to new replies.