Add class name of content, Hypernate doesn’t work to IE and Chrome

While inserting js directly in header.phpcan work it’s not recommanded to do that. You’d better add your scripts to the WordPress queue: function wpse_109879_insert_hyphenator() { wp_register_script(‘hyphenator’, ‘https://raw.github.com/bramstein/hypher/master/dist/jquery.hypher.js’, array(‘jquery’), null , false); wp_enqueue_script(‘hyphenator’); } add_action(‘wp_enqueue_scripts’,’wpse_109879_insert_hyphenator’); Regarding CSS you probably use the wrong class, you can try .single-post or .single EDIT: I see you use raw script. … Read more

Body text disappearing in random posts

First you should update your WordPress to 3.6. And then after that, make sure that the post is actually “published”, and visible to the public. If a post get’s set to “private” it won’t display unless a user with permission to alter the post is logged in. It’s a hard problem to diagnose without seeing … Read more

Sort Posts Alphabetically by Multiple Categories [duplicate]

Use the orderby and order parameters in the argument list. See the Orderby_Parameters section of WP_Query for details. $category_ids = $arr_records = $post_data = array(); $categories = get_categories( ‘child_of=4’ ); foreach( $categories as $category ) { $category_ids[] = $category->term_id; } $post_data = get_posts( array( ‘cat’ => $category_ids, ‘orderby’ => ‘title’, ‘order’ => ‘ASC’, ) ); … Read more

How to create three columns from selected posts

You might not have expected this kind of solution but it is worth knowing that there is also a front end solution for this kind of problem. The css3 spec have a new feature called column-count, which will automatically render your text in multiple columns Here is a simple example from w3schools div { column-count:3; … Read more

About number of posts in selected category

WP_Query has the following properties you might find handy: $wp_query->current_post – Index of the post currently being displayed. $wp_query->found_posts – The total number of posts found matching the current query parameters

get next/previous post name

$prev = get_previous_post(); $next = get_next_post(); $prev_title = $prev ? get_the_title($prev) : ‘Current is First Post’; $next_title = $next ? get_the_title($next) : ‘Current is Last Post’; See get_previous_post and get_next_post on Codex for some details and additional params you can use.

Assign certain editors to certain posts

If you used author, instead of editor, then WP default functionality would be such that they could only see those posts they are listed as author on. Editor might be then used for something like a supervisor who doesn’t need other admin roles. This solution means you don’t have to modify anything and can use … Read more

How to get all the terms of a post

Well to print each term you could loop through each object and echo the name and description foreach ($terms as $theterm) { echo $theterm->name . ” ” . $theterm->description; } Is this what you are looking for? [EDIT] Updated the answer