Error establishing a database connection

Try logging into FTP and making sure there is no .maintenance file, also erase the upgrade folder. Its never a good idea to stop wordpress during an automatic update. Take a look at your wp-config file to make sure everything appears correct, it could of been editing it and you cut it off half way.

Multi Quick Edit – Possible Or Impossible?

I’m not sure if there’s a WordPress-specific way to do this, but you can do a quick find-and-replace for the offending terms. I don’t know if it follows a pattern, but if you have access to the site through SSH you could do a MySQL dump and find/replace/reimport easily. Try this: mysqldump -uDBUSER -p DBNAME … Read more

get post custom value

I think you can better use get_post_meta(); Your code will look like this: <?php $site = get_post_meta(get_the_ID(), ‘projLink’, true); ?> <?php if(isset($site) && $site != “”) : ?> <span><p><a href=”https://wordpress.stackexchange.com/questions/38943/<?php echo $site; ?>”>Visit the Site</a></p></span> <?php else : ?> <p><em>Live Link Unavailable</em></p> <?php endif; ?> You use var_dump only for testing purposes (http://php.net/manual/en/function.var-dump.php).

How to make a posts page display only intros of posts?

You need to go inside the code of your category.php and… Change: the_content(); //or similer to: the_excerpt(); Goog luck.. Revised Answer for twenty eleven theme: 1. Open content.php and search for this line: <?php if ( is_search() ) : // Only display Excerpts for Search ?> 2. change it to this: <?php if ( is_search() … Read more

Attaching global meta to custom fields

I think the way I would tackle this would be a non-hierarchical taxonomy. That would allow you to tag the artist and such as well as give you a few fields to work with for basic data input…you also have the ability to expand, should you need it. If you’re going to have a lot … Read more

Display ONLY Latest Post From Several Categories

here is a great way to control the amount of latest posts you wish to show.. This releates to all categories: <?php $howmanyposts = 1; // here you can set the amout of posts $wp_query = new WP_Query(‘post_type=post&posts_per_page=”.$howmanyposts.”&paged=’.$paged ); while ($wp_query->have_posts()) :$wp_query->the_post(); ?> <div class=”lastpostHome”> <h3 id=”post-<?php the_ID(); ?>”><a href=”https://wordpress.stackexchange.com/questions/43175/<?php the_permalink() ?>” rel=”bookmark” title=”<?php _e(‘Permanent … Read more

Specific Post Format Image Thumbnail

From your comment: This is all I meant: add_image_size( ‘index-thumb’, 640, 250, true ); add_image_size( ‘image-format’, 630, 9999, true ); So, let’s assume you create custom image sizes for gallery and video (as well as a “default” size, which we’ll call standard), perhaps like so: <?php add_image_size( ‘index-standard’, 640, 250, true ); add_image_size( ‘image-gallery’, 630, … Read more

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