How to reproduce the post format field in a front end form?
How to reproduce the post format field in a front end form?
How to reproduce the post format field in a front end form?
WordPress is not multilingual out of the box. It needs a third party plugin to be. The date will be displayed as defined in the settings according the website language also defined in the WordPress settings? Regards
I’m a noob. I named the Taxonomy wrong… It’s post_format not post-format
Show a featured image with “Link” Post Type?
Post formats is an optional value added to WordPress posts which allows theme developers to define visual representation of a post. Theme developers can create themes with support for post formats. A number of post formats are available, however it is not possible for themes or plugins to introduce custom post formats. It is not … Read more
The taxonomy should be post_format and term should be post-format-link. Also simple taxonomy queries are deprecated since 3.1 in favor of tax_query: $args = array( ‘posts_per_page’ => 5, ‘tax_query’ => array( array( ‘taxonomy’ => ‘post_format’, ‘field’ => ‘slug’, ‘terms’ => ‘post-format-link’ ) ) ); $recent = new WP_Query( $args );
Rock the custom fields? You could do this manually or by using a plugin such as magic fields or PODS. I’ve never used PODS but I’ve been eying it for a while and think this may be your best route. You could do something like creating a category called “breakfast” and one called “lunch” then … Read more
$args=array( ‘paged’=>$paged, //Pulls the paged function into the query ‘posts_per_page’=> 4, //Limits the amount of posts on each page ‘post_type’=>’post_type’, //Set your allowed post types here ‘orderby’ => ‘title’, ‘order’ => ‘ASC’ ); query_posts($args); For more reference refer this. You can pass the allowed post_type array to post_type argument in arguments array.
I believe you just need to add some “elses” into your php, like so: if ( has_post_format( ‘aside’ )) { // do some stuff } elseif ( has_post_format( ‘chat’ )) { // do some other stuff } elseif ( has_post_format( ‘gallery’ )) { // do some other stuff } else { // this isn’t a … Read more
You’re talking about the format setting which was introduced in WP 3.1 for the posts post type? No, I don’t think this is possible. To remove the title-, editor- or any other metabox, you have to remove the support for this feature from the current post type. (e.g. remove the feature from the supports parameter … Read more