It sounds like your opening <?php
tag is abutting your first call to update_option. If it isn’t directly adjacent to it, perhaps the whitespace between the two is unrecognized for one reason or another (this can happen from copying and pasting from some sources). Have your functions.php file start off like this:
<?php
update_option('siteurl','http://example.com/blog');
update_option('home','http://example.com/blog');
Related Posts:
- Setting a cookie in functions.php and it gets deleted when working on an other function
- Hide certain post types from editors
- Problem with add_rewrite_tag
- Add functionality to post editor
- Update add_image_size
- Language switcher for subdomains
- custom post with loading script per single post
- getExcerpt: Make ellipsis appear only if character limit is reached
- Define an extra field for all pages (with no plugin?)
- Function to draw random image from specified category destroys site logic – why?
- Issues with add_query_arg() not passing a variable
- update_post_meta not working in function
- WordPress permanently logging users out
- What add_action reference should I be using or should I use do_action?
- What is wrong with functions.php? Fills error log with same error
- Function returning queried meta value based on current post ID
- List all post title in category using functions.php
- wp_enqueue_script only works outside of action
- How can I include user meta information in the resulting array of a WP_User_Query?
- How to add next height number in Order Attributes inside the Add new page. [duplicate]
- Adding custom field in menu options [duplicate]
- Quicktags external functions file
- Pagination in Search result
- Custom field not updating via functions upon publishing
- Pass max posts to Javascript
- Integrate WP Tiles into existing loop (index.php) and theme
- Updating site content after an AJAX call without a page reload
- disable WP_error: authentication_failed
- Function the_content
- Problem in outputting shortcode
- Edit TinyMCE Button Functionality
- need help with ‘… read more’ excerpt in functions.php
- Problem in shortcode outputting content
- Load a Child Theme’s style.css just before the closing tag
- Load CSS conditional on custom field is present
- Can’t wrap my head around this function – any help would be appreciated
- Modify sub_menu function to show pages below a specifically set page
- Figure inlined width trigger distorted layout
- Changing the color of post title [closed]
- Add custom class to all URLs on entire site
- wp_nav_walker that interacts with widgets to setup mega menu
- How To Get WordPress Categories Last Update Date?
- save_post hook – headers already sent?
- Expanding a function to call a plugin or show a link
- How to programmatically GET (to know) which Sidebar (or) which Menu is being used on Different Pages?
- How to add a meta information to the URL?
- Is it possible to change parameters of Parent theme function in the Child theme?
- Why are some custom javascript files working but some are not
- Getting error while trying to use custom comment function
- Error function main() is a non-object to construct my Ajax.php
- Load WP Admin scripts in a child theme functions file
- List Most Read Posts from last 7 days (with custom post type and other meta queries)
- Adding stick post button to edit post page
- add_role menu pages are not visible
- Preventing PHP Execution in Parent Theme
- Excerpt length: get 2 paragraphs
- Sanitize html, where to sanitize
- Settings in functions.php used by a plugin
- Remove heading tags on line break
- WordPress Javascript Widget jQuery Dependency Issue
- wp_upload_bits – define (sub)folder / (sub)directory before filename?
- Automatically add custom fields (post_meta) to all published posts, hourly, via wp_cron?
- Apply height and width for the_content() inside youtube video tag
- How to mirror exactly the left admin menu on front end?
- Adding a filter with custom function to the menu / navigation
- Check if excerpt is empty at loop-portfolio
- Mail function not working with user accounts
- Open image size links in a page instead of direct image link
- Function to get the name in database table from the comma separated string
- Function not recognizing page id?
- Add Function For Instances of Custom Text in Multiple Category IDs to display in post content
- Move captions under gallery images in twenty fourteen theme
- Increase Comment Author Gravatar Size On WordPress Default Comment Function
- Random text changing to weird icons in both admin & front end
- Register a widget area when a theme option has been saved?
- Blank child theme – functions.php problem
- Force changing the Site Title and add link
- Allow the access over wp-login.php
- Meta Box value not been pulled in
- Create input select image URL?
- Show the post date using the wp_get_archives() function?
- How to add a piece of code in function
- Why does my visual post editor break when I try to add a TinyMCE button?
- Remove Captions from Custom Gallery function.php
- Automatically delete posts based on query
- update_usermeta don’t work
- jQuery HoverIntent is not a function
- Show the online status of the current post’s author
- Functions.php in child theme that loads CSS file breaks website
- Update functions.php from WordPress dashboard
- Create html from function
- How to use different jquery function of idangero swiper dependant on page template?
- How to Add A Rel Filter to All Links?
- Exclude javascript in certain page url and all following url’s after forward slash
- Custom Nested WordPress Comments with avatar
- unregister_sidebar in child theme not working
- Print all inline styles to head
- Function to return custom post type titles from blog id 1
- Unregistering custom tinymce plugin?
- Trying to the deduce shortcode from a function