Replace get_bloginfo( 'siteurl' )
with home_url()
.
As the get_bloginfo()
Codex entry explains, siteurl
is deprecated:
'siteurl"https://wordpress.stackexchange.com/"home (note this is deprecated! from version 2.2)"https://wordpress.stackexchange.com/"url'
– Returns the'Site address (URL)'
set in Settings > General. This data is retrieved from the'home'
record in thewp_options
table. Consider usinghome_url()
instead.
Related Posts:
- Debugging with functions.php
- wp_enqueue_script was called incorrectly
- Remove type attribute from script and style tags added by WordPress
- How to debug vars inside function at functions.php file?
- How to display error messages using WP_Error class?
- Remove Menu Page Giving Error
- Functions.php reverted to new one
- Why is my Gutenberg block returning an error after initial save?
- Warning: : DOMDocument::loadHTML(): Empty string supplied as input in functions.php when adding classes to post images
- Parse error after modifying the template menu [closed]
- Dumping variable in custom pre_gets_post function in functions.php, returns NULL
- help I changed one currency in woocommerce and everything is ruined [closed]
- Need help getting a function to function
- Connecting to a 2nd DB gives me no results when querying
- register_sidebar_widget is deprecated since version 2.8! Use wp_register_sidebar_widget() instead
- the_posts_pagination() function returns missing page numbering on some blog pages
- Functions Error: Impacting Galleries
- Strange error from functions.php files (wp_register_script)
- Show errormessages on wrong username/password on custom loginform?
- Problems with functions.php! Error! [closed]
- Looking for Functions File that doesn’t Exist
- functions.php pharse error on complete new install
- Getting value of variable from functions.php and debugging it
- “Conditional query tags do not work before the query is run. Before > then, they always return false. “
- Move product attributes after summary on single product page
- MCAPI.class.php showing some error
- I’m getting invalid taxonomy in init action
- Translation Function missing text-domain [closed]
- What is wrong with functions.php? Fills error log with same error
- Random text changing to weird icons in both admin & front end
- jQuery HoverIntent is not a function
- Fatal error after changes to functions.php, even with original file
- create submenu page – error function not found or invalid function name
- Why does modifying my functions.php file always result in a server error
- Notice: Use of undefined constant REQUEST_URI – assumed ‘REQUEST_URI’ in ….functions.php on line 73
- Woocommerce – Checkout error message
- How to fix enqueue_styles error for a twenty-seventeen childtheme
- Comment turned Invisible
- Logout redirect via page template without confirmation?
- Convert Image to Webp on upload without plugin
- Missing feature image link function
- How to customize the_archive_title()?
- Get menu object from theme_location
- Displaying the number of updates available in the Admin area
- Trying to use add_action and do_action with parameters
- Safe to disable wptexturize?
- Get a list of all available fields in the User Profile
- How do I use the WP image functions in a page template?
- Insert Ad Code in the Middle of a Post
- Add options to featured image
- WordPress Change Post Templates,but not drop down, but Image selection
- Programmatically Add Font-Awesome Icons to Category Widget
- Remove “says” from comments
- Reuse variable in hook callback
- Dynamically Register Sidebars For Each Top Level Page
- Run Product Filter Javascript On Page Template
- Can you use admin pages functionality on the frontend of your site
- How to add a column to the Trash page?
- add_sub_menu page() to be replaced by add_theme_page()
- Overwrite Parent Theme add_image_size in Child Theme
- Custom registration URL lost when user makes signup mistake
- Images uploaded using media uploader are appearing upside down
- Individually styling date month year [closed]
- Tiny MCE-modifications (plugins) stopped working in WordPress 5.6
- Writing functions in WordPress functions.php that don’t replace a WordPress core function
- How to hook into a function offered by a plugin?
- Change position of media in admin menu
- How can I remove the main description text box in a Woocommerce product editor page? I only use the “Product short description” text box [closed]
- show first 3 thumbnails of posts in different sizes [closed]
- Getting custom image size URL in functions
- new_excerpt_more link not working properly
- WordPress function saves a post twice and updates all posts
- Change CSS for logged in users
- if statement for wordpress default featured image on single post
- Function to display post by specific author
- Add code to Functions.php
- How can we know we are not in edit page
- Adding jQuery datepicker to Custom Post Type Metabox [closed]
- What happens to the text in functions.php file outside of the php enclosure?
- wordpress acts like functions.php doesn’t exist [closed]
- retrieves menu and converts it to a readable array
- Replace admin header logo with an image
- Featured Image and Tags problem
- Advanced method to control cache of enqueued style/script
- Issue passing action class to nested function. Admin Columns
- How to make the RTL.css the dominant css code?
- Is there any requirements to do socket programming with WordPress?
- Rest API User Levels
- adding google analytics via echo or between tags
- Slider Thumbnail Size Issue [closed]
- same get_posts function works diffrently in tag.php and functions.php
- Call custom field using php
- How to Update User Meta Field other than from profile?
- Retrieve array of attachment IDs attached to a given Post ID
- add_theme_support not outputting thumbnails
- More link – not text
- update_user_option not working as expected
- PHP Notice: Function is_page was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false
- How do i set global variable in a function in wordpress functions.php
- Working function() doesn’t execute when triggered by WP CRON