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).

Using str_replace on wp-admin

I haven’t tested this code, but I think it will work for you. I just put add_filter after the function and chose preg_replace: <?php /** * wpse_replace_version_message */ function wpse_replace_version_message( $html ) { $html = preg_replace( ‘<span id=\’wp-version-message\’>You are using <span class=”b”>WordPress 3.4-alpha-19904</span>’, ”, $html ); return $html; } add_filter( ‘admin_print_scripts-index.php’, ‘wpse_replace_version_message’ ); ?>

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

Custom table or form

How I would do it: Create a public accessible form in a page. Look at the code of front end submission plugins to get an idea. Create a custom post type shipping. Create a custom user role customer with very limited capabilities (read_shipping, edit_user_profile). After form submission create a new shipping entry, register the user … Read more

How to remove the tagline from the HTML ?

Ah, figured it out. In /wp-content/themes/twentyeleven/header.php, you can comment out this: // Add the blog description for the home/front page. $site_description = get_bloginfo( ‘description’, ‘display’ ); if ( $site_description && ( is_home() || is_front_page() ) ) echo ” | $site_description”; Then the blog tagline won’t be added for the front page.

Edit the Publish Widget Options

I think you should use the post_submitbox_misc_actions add_action( ‘post_submitbox_misc_actions’, ‘publish_in_frontpage’ ); function publish_in_frontpage($post) { $value = get_post_meta($post->ID, ‘_publish_in_frontpage’, true); echo ‘<div class=”misc-pub-section misc-pub-section-last”> <span id=”timestamp”>’ . ‘<label><input type=”checkbox”‘ . (!empty($value) ? ‘ checked=”checked” ‘ : null) . ‘value=”1″ name=”publish_in_frontpage” /> Publish to frontpage</label>’ .'</span></div>’; }

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