How do you order posts by type then term_id and then by date?

You can use the orderby parameter and pass it an array of what you want to order by in the order you want it ordered by: https://developer.wordpress.org/reference/classes/wp_query/#order-orderby-parameters This solves the problem of ordering by post type, and by date, but ordering by term slug or term ID is not something WP_Query can do. It may … Read more

Change from all posts to specific categories post on main page?

Your syntax is wrong, change: query_posts( array( ‘post_type’ => array( ‘post’, $include_reviews, $include_screenshots, $include_videos ), ‘paged’ => $paged ) ); to: query_posts( array( ‘tax_query’ => array( array( ‘taxonomy’ => ‘category’, ‘field’ => ‘slug’, ‘terms’ => array( $include_reviews, $include_screenshots, $include_videos ) )), ‘paged’ => $paged, ‘post_type’ => ‘post’) );

how to show all post with its contents

The theme determines whether to show excerpts or full content on archive pages (e.g. the cateogry listing), and since you’re on WordPress.com, you’ll probably have to change themes to one that shows the full content on archive pages. There’s a listing here, don’t know how complete it is: http://wpbtips.wordpress.com/2009/03/25/full-posts-in-archive-pages/ You might also try putting the … Read more

Action while post is being published

It sounds like you’re looking for the publish_post hook which (per the Codex): Runs when a post is published, or if it is edited and its status is “published”. Action function arguments: post ID. Alternately, there’s save_post which is triggered whenever a post or page is created or updated, which could be from an import, … Read more

clicking on page title

usually the code that makes a link to a title in WordPress looks something like this <a href=”https://wordpress.stackexchange.com/questions/66152/<?php the_permalink(); ?>”><php the_title(); ?></a> if you were to change it to this <?php the_title(); ?> it would only display the title. It would remove the link. Does that answer your question?

Adding a content rating system

Custom field will do the task. On the post page there’s nothing to do great, just create a Custom Field called agerating or age-rating. Authors will enter the value of the field according to their content with G/PG/R/X. Then at the frontend, edit single.php. Use this code inside the loop to retrieve the rating value: … Read more

Adding a post to a page

Well, if you just want to add specific Post’s content/title/other stuff to specific Page, You can just use get_post() function. But Your formulation of question very vague.

How can I display these posts in ascending order?

Keep in mind that query_posts is best avoided as it has negative effects on the main loop. A better approach would be a new instance of WP_Query or changing the query arguments for the main loop. To get the order you want, try adding the following to your args: array( ‘posts_per_page’ => ‘-1’, ‘post_type’ => … Read more

Ajax calls in wordpress

your ajax url is wrong i think. ajax link should be admin_url( ‘admin-ajax.php’ ). That means wp_localize_script(‘history_script’, ‘myAjax’, array(‘ajaxurl’ => get_template_directory_uri().’/functions.php’)); will be this wp_localize_script(‘history_script’, ‘myAjax’, array(‘ajaxurl’ => admin_url( ‘admin-ajax.php’ ));

What does WordPress mean by they have full rights to content [closed]

This is pretty off-topic — this site is meant for WordPress programming questions — but here’s an answer anyways. If you’re referring to WordPress.com’s Terms of Service, what you are granting WordPress (actually Automattic, WordPress’s parent corporation) is as follows: By submitting Content to Automattic for inclusion on your Website, you grant Automattic a world-wide, … Read more

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