Tag Info

New answers tagged

0

For those coming here because of the title of the question: If you have a look at Post Formats at the Codex you'll see that [...] New formats cannot be introduced by themes or even plugins. [...] Which kills you're option 2. Also have a look at this: Custom Post Formats For your apparent actual question: It really depends on how much they differ. ...


2

Unlike the other taxonomies, you cannot use wp_inset_term() to add terms to the post_format taxonomy as you cannot add new terms to this taxonomy. You need to add the terms for the post_format via add_theme_support(), something like add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );


1

Post Formats aren't like other taxonomies, they are fixed and new ones can't be added. New formats cannot be introduced by themes or even plugins. The standardization of this list provides both compatibility between numerous themes and an avenue for external blogging tools to access this feature in a consistent fashion.


1

I'm not quite sure if you need a dedicated page or a true archive page for this, but here is the two options If you need a dedicated page to display video post formats, you can make use of a custom query with a tax_query as post_format is just another build in taxonomy with post-format-video being a term to the post_format taxonomy. Your query on your page ...


0

Hi this may be a solution to your problem. Instead of putting: <?php echo $embedUrl; ?> Put it like this: <?php echo substr($embedUrl, 0, 11); ?> it will echo only the 11 character code after the v= of the extracted Youtube link on the video post content. I have tested it myself and came with this solution. Hope this helps!


0

I figured out that way to solve my problem. Just get post format then get the content by using get_post_meta($post->ID, 'variable_name', true); Example: <article class="post post-<?php echo $postformat; ?>"> <?php if( $postformat == "video" ){ $embed_video_code = get_post_meta($post->ID, 'video_embed_code', ...


0

So to move the title below the content just move the html. <article> <div class="entry-content"> <?php the_content(); ?> </div> <!-- end entry-content --> <div class="entry-header"> <h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ...



Top 50 recent answers are included