Blog broken after changing Site/Home URL

If you have access to the MySQL DB, make sure that wp_blogs.domain is correct, and also wp_blogs.path. Also, run the following to verify the values are correct (assuming WP_OPTIONS is the table holding the options for your main site). SELECT * from wp_options where option_name=”siteurl” or option_name=”home”;

Referring to site URL in shortcode argument

To answer the heart of your question: no, WordPress does not have a way of referencing posts by ID/slug/etc. within the post content. In fact, probably the recommended way to do that is with a…shortcode! Even that wouldn’t help you in this case, though, since you can’t nest shortcodes without a plugin. So I’d recommend … Read more

How to add www to images?

Try with Velvet Blues Update URLs wordpress plugin. I had used velvet blue update urls plugin many times while migrating wordpress site from one domain to another. please select attachment option in that. Link For Velvet Blues Update URLs Old Url Use “http://example.com” & In new Url use “http://www.example.com” & Check All the Options then … Read more

Changing siteurl breaks site

Put this in your theme template functions.php update_option( ‘siteurl’, ‘http://example.com’ ); update_option( ‘home’, ‘http://example.com’ );

All styles are looking for the site URL twice

If you have set the stylesheet href as relative path eg. /example.com/wp-content/… it will append it to the current location http://example.com in your browser, so for just a relative path use just /wp-content/. But if you specify an absolute path eg. http://example.com/wp-content/… or even //example.com/wp-content/ it will just look for that directly. Either way should … Read more

How to change URL of my pages?

I combined this nice solution for adding an additional option to the permalinks page and this snippet for adding a custom base name to page permalinks. Usage Save the snippet below as wpse238124-page-base.php, place it in your plugins directory, and activate Page Base on your plugins page. Then, visit your permalinks page, enter your desired … Read more

Homepage cannot be found

Visiting your domain name redirects to domain.com/index.html and that’s where your issue is – WordPress doesn’t know what index.html is and throws 404 error. The redirection might be caused by many things, hard to tell just by visiting your homepage. Are you sure that you’ve setup the WordPress URL and Home URL settings correctly? How … Read more

WordPress URL not working?

This is not how rewrite_rules works in WordPress. You miss two things. Match. It has $1, but in reality (take a look to example), you need to work with $matches. Your Query Var. You using q, but its not wp native or declared in example code. You can use one of the public ones or … Read more