Remove the_content From Loop

I don’t see anything that would cause the_content() to display in your code. Chances are, the template file you are editing is NOT the one being used on the page/archive you are checking. Add this to the top of your template files… <!– Template: <?php echo __file__; ?> –> Now, in your web browser view … Read more

Filtering problem

… I will need to be more specific, by adding a “%” after $author (James). The problem is that this will not work at all. Any idea why? The % is a wildcard with a MySQL LIKE query, which I suspect you know. With meta queries, WordPress will add one to the beginning and one … Read more

Javascript block in Twenty Twelve theme

By default when you use wp_enqueue_script the script is inserted into the <head> section. This is usually set in functions.php. The argument also has a footer option called $in_footer, if you set this to true, the scripts will instead be added to the footer section. In TwentyTwelve there are several calls to wp_enqueue_script with footer … Read more

Changing 2011 theme header image based on user dropdown

I had to take information from both of your posts to be able to come with something. Try replacing <img src=”https://wordpress.stackexchange.com/questions/89211/<?php header_image(); ?>” width=”<?php echo $header_image_width; ?>” height=”<?php echo $header_image_height; ?>” alt=”” /> width <?php if (!(isset($_POST[“styles”]))) { //if post not set (first visit) if ($_COOKIE[“chosenStyle”] == “night”) { echo ‘<img src=”‘.get_template_directory_uri() . ‘/images/headers/SomethingOriginalTheMoonAndStars.png” width=”1000″ … Read more

Add Google+ Badge to Posts – Specific to Author

Grab Meta Data Use get_user_meta() for that. The key is ‘galink_profile’. echo get_user_meta( ‘galink_profile’, ‘put the user ID here’, true ); Another option is to get it from the author meta data get_the_author_meta() if you’re displaying an author page/archive: echo get_the_author_meta( ‘galink_profile’, ‘put the user ID here’ ); Get user IDs You can grab the … Read more

Author Link Not Displaying

You have to use setup_postdata function if you want to use the_author_link with custom loop. Do it like this: <h2 class=”sidebarheaders”>Random Posts By You </h2> <br/> <?php $rand_posts = get_posts( array( ‘numberposts’ => 5, ‘orderby’ => ‘date’ ) ); foreach( $rand_posts as $post ) : setup_postdata( $post ); ?><li><a href=”https://wordpress.stackexchange.com/questions/89309/<?php the_permalink(); ?>”><?php the_title(); ?></a></li> Written … Read more

increase maximum upload file

Please try to upload the php.ini file to the document root directory or to the same directory as wp-config.php. You may also want to modify memory_limit to 120M and modify max_execution_time to 300.

Remove the theme info from main dashboard screen- not appearance

You can remove this via javascript. The class of the theme informations is versions and the ID of this Meta Box is dashboard_right_now. The follow screenshot demonstrate how I find this class and id via Crome Webinspector. add_action( ‘admin_footer-index.php’, ‘fb_remove_comments_areas’ ); function () { ?> <script type=”text/javascript”> //<![CDATA[ jQuery(document).ready( function($) { $( ‘#dashboard_right_now .versions’ ).remove(); … Read more