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 7965201
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:04:55+00:00 2026-06-04T06:04:55+00:00

Is it possible to define the WordPress Permalink in functions.php using something like this:

  • 0

Is it possible to define the WordPress Permalink in functions.php using something like this:

<?php $permalink = the_permalink;?>

Where “the_permalink” uses the inbuilt WordPress function to get the permalink of the blog, and then use $permalink further down in functions.php for example, with an image URL: <img src="'.$permalink.'/images/image1.png'"/>

I just need to pull the Peramlink into functions.php for use further down in the file like in the example above. Either the_permalink or bloginfo('template_directory') would work great.

  • 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-04T06:04:57+00:00Added an answer on June 4, 2026 at 6:04 am

    I figured this out myself. I ended up using the following link structure in my functions.php file

    <img src="'.get_bloginfo('stylesheet_directory').'/images/map-point-medical.png"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to define a function and use without ()? Like require(a.php) and
It's possible to define a pointer to a member and using this later on:
Is that possible to define a function without referencing to self this way? def
Is it possible to define private variables in a PHP script so these variables
Is it possible to define in which schema new tables get created by default?
Is it possible to define a wordpress template with multilpe input areas for content?
It is possible to define (client-side): now.function = function(){console.log('test');} ... that is called by
Is it possible to define a spring-managed EJB3 hibernate listener? I have this definition
I'm using: jQuery Bubble Popup v.2.3.1 http://maxvergelli.wordpress.com/jquery-bubble-popup/ You are meant to have this in
Is it possible to define a sparse matrix in scipy from a function rather

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.