Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8451227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:10:51+00:00 2026-06-10T11:10:51+00:00

Is there a way to do normal links in WordPress (not image source links)

  • 0

Is there a way to do normal links in WordPress (not image source links) in a “relative” manner??

Im doing custom site in WP and some portions of the site, for example an image link that when clicked, leads to a specific dynamically built WordPress page, i always link them absolutely.

So for example, if the website wordpress page i want link to is page_id=39 and the site is XYZ.com then my image link would be etc…

Problem with this is that when i take the site from a test server to the live server i have to manually go in again and redo ALL the manual links.

Unlike the image relative links which look something like this <img src="<?php bloginfo('template_directory');?>/image here"/> where this relatively looks for physical image somewhere on the site, the WordPress pages don’t exist in the traditional sense of an actual page.php etc so, how can i get around this, is there some function i can employ that will get me using relative links/path builder to actual dynamic wordpress pages so that i dont have to manually/absolutely link something?

Thanks in advanced.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:10:53+00:00Added an answer on June 10, 2026 at 11:10 am

    as you get the link for an image with <?php bloginfo('template_directory');?>/iamges/... the same way you can get urls for any page <a href="<?php bloginfo('url');?>/?page_id=39">
    another way (better way) would be to get the permalink to the page using page’s id

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to make that normal text and links share the same
Is there a way to tune the Oracle client (InstantClient or the normal one)?
In javascript, is there any different between these two: // call MyFunction normal way
Is there way to better identify design pattern in source codes, esp. if you
I have a lot of broken links that are not being logged. Is there
Is there a nice and simple way to add a filter to the wordpress
On a Wordpress site, I have both a normal blog that I want Google
Is there way to get file from windows xp command prompt? I tried to
Is there way to automatically maximize the output window on hitting build and then
Is there way to copy a file into Plone with WebDAV and have Plone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.