I changed my url and cant access my site, Help?

If you were attempting a site migration you should have backed up all your files and database tables before changing your URL. When you change your site URL (presumably from the Settings->General option page), you are essentially modifying every link on the site to point to the new URL. If that URL is not setup … Read more

WPMU – How to echo only one URL

Ok I was able to eventually figure it out, what I did was exclude the main blog from the code. <?php if(current_user_can( ‘edit_posts’ )) { global $current_user; $blogs = get_blogs_of_user( $current_user->id ); if($blogs) { foreach ( $blogs as $blog ) { if($blog->userblog_id != 1) { echo ‘<li><a href=”http://’ . $blog->domain . $blog->path .’upload-and-manage-documents/”>My Documents</a></li>’; echo … Read more

How do I fix the url when clicking on portfolio item?

You could do it with jQuery: jQuery(document).ready(function($) { $(‘a[href*=#]’).on(‘click’, function(event){ event.preventDefault(); }); }); Save that to a file (something.js) and upload it to your server. Then add the following to your functions.php (remember to set up a child theme if you aren’t using one): add_action( ‘wp_enqueue_scripts’, ‘prefix_load_scripts’ ); function prefix_load_scripts() { wp_register_script( ‘something’, get_stylesheet_directory_uri() . … Read more

Why plugin’s icon for the menu not found?

Sometimes i find wordpress can be quite finiky when it comes to referencing files within the plugin. Specifying a full path seems to fix the problem. Try replacing… market_admin/icon.png With… /wp-content/plugins/your-plugin-name-goes-here/your-file-name-goes-here.png

Function to get custom post image URL

Can you show us what the cp_get_image_url() function does? Is it from a plugin or theme? Is the image uploaded to the Featured Image or a Custom Field? Without knowing what that function is actually doing, the best I could come up with is this: <?php $media = get_attached_media(‘image’); foreach($media as $m) { $mee = … Read more

Append taxonomy url

You have at least 3 ways of accomplishing this. Option 1 The easiest is to change your permalink structure to “Post Name”, and then create your landing pages with the slugs you want. So, your slug for york would be “trainers-in-york”. Option 2 If you absolutely must modify the url, you can use add_rewrite_rule to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)