Font shows up as Arial instead of Times [closed]

The paragraphs that show up differently are not inside <p> tags. Therefore the font rule in your story.css file (line 111) does not apply to them. To fix this you can do one of two things: Put the paragraphs that are showing up with the wrong font inside <p> tags. Add a new rule in … Read more

Trying to edit archive.php to only show post extract, with featured image

To replace the full content with the excerpt, change <?php the_content( ‘<em>Continue reading &rarr;</em>’ ); ?> To <?php the_excerpt(); ?> To display the featured image use this: <?php the_post_thumbnail( ‘single-post-thumbnail’ ); ?> Note: Make sure you have this next snippet somewhere in your theme’s functions.php file //add theme support for post thumbnails add_theme_support( ‘post-thumbnails’ );

All Posts Linking to Author Posts directly

You would need to edit your theme files. You need to search each files looking for something along the lines of <p>All Posts of: <?php the_author_posts_link(); ?></p> and just change that to <p><a href=”https://wordpress.stackexchange.com/questions/70227/<?php echo get_author_posts_url(get_the_author_meta(“ID’)); ?>”>All Posts</a></p>

Can’t understand why sometimes a [caption] field appears

The part shows up because one of your authors/editors added a caption to the image when it was inserted into the post. You will have this problem not only with captions but with any other shortcodes that your authors/editors use. And you should be aware that WordPress includes several in its Core but various plugins … Read more

Blog post not showing title

This happens because you have set the post format of that entry to link, and for that post format TwentyEleven does not show the post title: .format-link .entry-title { display: none; } Solution: Use another post format (standard for example) or another theme.

get posts from Custom Post Type & Category

It is ‘cat’, not ‘category’. query_posts( array( ‘numberposts’ => 5, ‘cat’ => 9, ‘post_type’ => ‘blog’ ) ); Also, be aware the query_posts alters the main page query. Unless you specifically intend to do that, and need to do it, use get_posts or make a new WP_Query object. And if you do have to use … Read more

Using setup_postdata() with multi-dimensional array

There was a similar (related) question on here recently. The upshot is that get_the_title() uses the global $post when no argument is passed. And setup_postdata() doesn’t set that global (a mistake I’ve made before now ). In your case, I would do the following: foreach( $locations as $post ) { setup_postdata(get_post($post[‘id’])); echo get_the_title($post[‘id’]); } wp_reset_postdata(); … Read more

Form to post new post with custom taxonomies

Update your form to include the term-id, instead of just <input type=”checkbox” /> use <input type=”checkbox” name=”taxonomy_id[]” value=”‘. $industryterm->term_id .'” />. That way you are actually sending along some values, in this case the term id. And in the args for wp_insert_post() make sure to include something like this: ‘tax_input’ => array( ‘industries’ => $_REQUEST[‘taxonomy_id’] … Read more