Blog

How to use post formats with Modern theme?

What are post formats, how they display and how to use them in this WordPress theme? Find out more in this tutorial article.

What is a post format?

A post format is used by a theme for presenting posts in a certain format and style, such as “standard”, “image”, “gallery” “audio”, “video”, “quote”, “status”, “aside”, “link” and/or a “chat” post. You can actually read thorough explanation of post formats on WordPress codex pages. (Post formats should not be confused with post types!)

Post formats supported in Modern

Post formats styling and support is left solely for a theme you are using. Here is how you use post formats supported in Modern WordPress theme:


Audio post format

Displays audio player (or playlist) to play your audio files. Could be used for podcasting.

Insert your audio player (or playlist) (or embed media) anywhere in the post content. The first audio player found will be used in the post media area in posts list. The single post page will display as usual.

Gallery post format

Insert a gallery anywhere in the post content. The first 3 gallery images will be used in slideshow in the post media area in posts list. The single post page will display as usual.


Image post format

In posts list it displays a featured image, or the first image found in post content, followed with post excerpt. Font sizes in posts list are different than in default standard post format. This post format is also marked with an image icon. The single post page will display as usual.

Link post format

It enhances any links in the post content. No post title in posts list and full post content is displayed there.


Quote post format

Displays a full post content as a quote, styled with accent colors. Also displays a post featured image if set.

You can use a cite HTML tag (inside a blockquote tag) to set the quote source. This way you can use any inline HTML to set the quote source.
Alternatively, you can set the quote source as a quote_source custom field, but there is no HTML allowed here.
Finally, if none of these are set, the post title is displayed as quote source.


Status post format

Status post format displays a whole post content in posts list. It is a short status update, similar to a Twitter status update. You can also set a post featured image, or the post author Gravatar will be displayed instead.


Video post format

Displays video player (or playlist) to play your video files. Could be used for video blogging.

Insert your video player (or playlist) (or embed media) anywhere in the post content. The first video player found will be used in the post media area in posts list. The single post page will display as usual.


If you experience any difficulty setting up post formats, please contact theme support.

Style guide

The style guide provides you with a blueprint of the theme’s default post and page HTML styles. This post also displays automatically generated table of contents. Intro image is disabled on this post.

Below is just about every HTML element you might want to use in your blog posts. Check the source code to see the many embedded elements within paragraphs. This is also an example of text paragraph with dropcap first letter. Simply add class="dropcap-text" on the paragraph HTML tag where you want to display the dropcap.


Heading Two

Lorem ipsum dolor sit amet, test link adipiscing elit. This is strong. Nullam dignissim convallis est. Quisque aliquam. This is emphasized.

Heading Three

Donec faucibus. Nunc iaculis suscipit dui. 53 = 125. Water is H2O. Nam sit amet sem. Aliquam libero nisi, imperdiet at, tincidunt nec, gravida vehicula, nisl.
The New York Times (That’s a citation).

Heading Four

Underline. Maecenas ornare tortor. Donec sed tellus eget sapien fringilla nonummy. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.

Heading Five

HTML and CSS are our tools. Mauris a ante. Suspendisse quam sem, consequat at, commodo vitae, feugiat in, nunc. Morbi imperdiet augue quis tellus.

Heading Six

Praesent mattis, massa quis luctus fermentum, turpis mi volutpat justo, eu volutpat enim diam eget metus. To copy a file type COPY filename. Dinner’s at 5:00.Let’s make that 7. This text has been struck.

Comments example

This is an example of image post format. You should really set post featured image for image post format or the first image found in post content will be used.

Swimming hundreds of feet beneath the ocean’s surface in many parts of the world are prolific architects called giant larvaceans. These zooplankton are not particularly giant themselves (they resemble tadpoles and are about the size of a pinkie finger), but every day, they construct one or more spacious “houses” that can exceed three feet in length.

The houses are transparent mucus structures that encase the creatures inside. Giant larvaceans beat their tails to pump seawater through these structures, which filter tiny bits of dead or drifting organic matter for the animals to eat. When their filters get clogged, the larvaceans abandon ship and construct a new house.

Laden with debris

Laden with debris from the water column, old houses rapidly sink to the seafloor. In a study published in Science Advances on Wednesday, scientists near California’s Monterey Bay have found that, through this process, giant larvaceans can filter all of the bay’s water from about 300 to 1,000 feet deep in less than two weeks, making them the fastest known zooplankton filter feeders.

In doing so, the creatures help transfer carbon that has been removed from the atmosphere.

And given their abundance in other parts of the world, these organisms likely play a crucial role in the global carbon cycle. When it comes to the flow of carbon in the ocean, “we don’t know nearly as much as we should,” said Kakani Katija, a principal engineer at the Monterey Bay Aquarium Research Institute and the study’s lead author.

Carbon in the ocean

“If we really want to understand how the system works, we have to look at all the players involved. Giant larvaceans are one important group we need to learn more about.” In the past, other scientists have tried studying giant larvaceans in the laboratory. But these efforts always failed because the animals’ houses were too fragile to be harvested and collected specimens were never able to build houses outside the ocean.

Zooplankton

To study the zooplankton in their natural habitat, Dr. Katija and her collaborators developed a new deep-sea imaging instrument, called DeepPIV, which they paired with a remotely operated vehicle. DeepPIV projects a sheet of laser light that cuts straight through a larvacean’s mucus house.
A high-definition camera on the remotely operated vehicle can then capture the inner pumping mechanisms illuminated by the laser.

Formats button styles preview

Preview the post editor custom “Formats” dropdown button for some additional styles the theme provides out of the box.

Text styles

Dropcap text. Apply this format on a text paragraph. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat voltu.

H3 with Heading 1 style

Uppercase text. Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse.

Paragraph with Heading 2 style

Ut wisi enim ad minim veniam, highlighted text (marker) here, quis nostrud exerci tation ullamcorper, small text here, suscipit lobortis nisl ut aliquip ex ea commodo consequat, superscript, subscript.

Paragraph with Heading 3 style

Heading style texts can be used to force heading 1-3 display style on a different element, such as paragraph or any of HTML heading tags. Thus allows keeping the semantic markup, but styling it a bit differently.

Post with comments disabled

This is an example of gallery post format and also an example of disabling post comments. You don’t really need to set post featured image for gallery post formats, it’s up to you.

Sifting through teaspoons of clay and sand scraped from the floors of caves, researchers have managed to isolate ancient human DNA without turning up a single bone. Their new technique, described in a study published on Thursday in the journal Science, promises to open new avenues of research into human prehistory and was met with excitement by geneticists and archaeologists.

“It’s a bit like discovering that you can extract gold dust from the air,”

said Adam Siepel, a population geneticist at Cold Spring Harbor Laboratory.
“An absolutely amazing and exciting paper,” added David Reich, a genetics professor at Harvard who focuses on ancient DNA.

DNA from fossil bones

Until recently, the only way to study the genes of ancient humans like the Neanderthals and their cousins, the Denisovans, was to recover DNA from fossil bones. But they are scarce and hard to find, which has greatly limited research into where early humans lived and how widely they ranged.



The only Denisovan bones and teeth that scientists have, for example, come from a single cave in Siberia.

Looking for these genetic signposts in sediment has become possible only in the last few years, with recent developments in technology, including rapid sequencing of DNA. Although DNA sticks to minerals and decayed plants in soil, scientists did not know whether it would ever be possible to fish out gene fragments that were tens of thousands of years old and buried deep among other genetic debris.

Long way

Bits of genes from ancient humans make up just a minute fraction of the DNA floating around in the natural world. But the German scientists, led by Matthias Meyer at the Max Planck Institute for Developmental Biology in Tübingen, have spent years developing methods to find DNA even where it seemed impossibly scarce and degraded.

“There’s been a real revolution in technology invented by this lab,” Dr. Reich said. “Matthias is kind of a wizard in pushing the envelope.”
Scientists began by retrieving DNA from ancient bones:

  1. first Neanderthals,
  2. then Denisovans.

Suprising findings

To identify the Denisovans, Svante Paabo, a geneticist at the Planck Institute and a co-author of the new paper, had only a child’s pinkie bone to work with. His group surprised the world in 2010 by reporting that it had extracted DNA from the bone, finding that it belonged to a group of humans distinct from both Neanderthals and modern humans. But that sort of analysis is limited by the availability of fossil bones.

“In a lot of cases, you can get bones, but not enough,” said Hendrik Poinar, an evolutionary geneticist at McMaster University. “If you just have one small piece of bone from one site, curators do not want you to grind it up.”

There’s video in this post

This is an example of video post format. You don’t really need to set post featured image for video post formats, it’s up to you.

Their new technique, described in a study published on Thursday in the journal Science, promises to open new avenues of research into human prehistory and was met with excitement by geneticists and archaeologists.

“It’s a bit like discovering that you can extract gold dust from the air,”

said Adam Siepel, a population geneticist at Cold Spring Harbor Laboratory.
“An absolutely amazing and exciting paper,” added David Reich, a genetics professor at Harvard who focuses on ancient DNA.

DNA from fossil bones

Until recently, the only way to study the genes of ancient humans like the Neanderthals and their cousins, the Denisovans, was to recover DNA from fossil bones. But they are scarce and hard to find, which has greatly limited research into where early humans lived and how widely they ranged.

The only Denisovan bones and teeth that scientists have, for example, come from a single cave in Siberia.

Looking for these genetic signposts in sediment has become possible only in the last few years, with recent developments in technology, including rapid sequencing of DNA. Although DNA sticks to minerals and decayed plants in soil, scientists did not know whether it would ever be possible to fish out gene fragments that were tens of thousands of years old and buried deep among other genetic debris.

Long way

Bits of genes from ancient humans make up just a minute fraction of the DNA floating around in the natural world. But the German scientists, led by Matthias Meyer at the Max Planck Institute for Developmental Biology in Tübingen, have spent years developing methods to find DNA even where it seemed impossibly scarce and degraded.

“There’s been a real revolution in technology invented by this lab,” Dr. Reich said. “Matthias is kind of a wizard in pushing the envelope.”
Scientists began by retrieving DNA from ancient bones:

  1. first Neanderthals,
  2. then Denisovans.

Suprising findings

To identify the Denisovans, Svante Paabo, a geneticist at the Planck Institute and a co-author of the new paper, had only a child’s pinkie bone to work with. His group surprised the world in 2010 by reporting that it had extracted DNA from the bone, finding that it belonged to a group of humans distinct from both Neanderthals and modern humans. But that sort of analysis is limited by the availability of fossil bones.

“In a lot of cases, you can get bones, but not enough,” said Hendrik Poinar, an evolutionary geneticist at McMaster University. “If you just have one small piece of bone from one site, curators do not want you to grind it up.”

Sounds from Earth

This is an example of audio post format. You don’t really need to set post featured image for audio post formats, it’s up to you.

Space is full of radio waves, and those waves, just like the ones bouncing through the Earth’s atmosphere, can be converted into audible sounds. The recording starts with the patter of a summer squall. Later, a drifting tone like that of a not-quite-tuned-in radio station rises and for a while drowns out the patter.

These are the sounds encountered by NASA’s Cassini spacecraft as it dove through the gap between Saturn and its innermost ring on April 26, the first of 22 such encounters before it will plunge into Saturn’s atmosphere in September. What Cassini did not detect were many of the collisions of dust particles hitting the spacecraft as it passed through the plane of the rings. “You can hear a couple of clicks,” said William S. Kurth, a research scientist at the University of Iowa who is the principal investigator for Cassini’s radio and plasma science instrument.

Recording dust hits

Legs from the grass, upside downThe few dust hits that were recorded sounded like the small pops caused by dust on a LP record, he said. What he had expected was something more like the din of “driving through Iowa in a hailstorm,” Dr. Kurth said.

Since Cassini had not passed through this region before, scientists and engineers did not know for certain what it would encounter. Cassini would be traveling at more than 70,000 miles per hour as it passed within 2,000 miles of the cloud tops, and a chance hit with a sand grain could be trouble.

The analysis indicated that the chances of such a collision were slim, but still risky enough that mission managers did not send Cassini here until the mission’s final months. As a better-safe-than-sorry precaution, the spacecraft was pointed with its big radio dish facing forward, like a shield.

Not only was there nothing catastrophic, there was hardly anything at all.

The few clicking sounds were generated by dust the size of cigarette smoke particles about a micron, or one-25,000th of an inch, in diameter. To be clear: Cassini did not actually hear any sounds. It is, after all, flying through space where there is no air and thus no vibrating air molecules to convey sound waves. But space is full of radio waves, recorded by Dr. Kurth’s instrument, and those waves, just like the ones bouncing through the Earth’s atmosphere to broadcast the songs of Bruno Mars, Beyoncé and Taylor Swift, can be converted into audible sounds.

Bottom line

Dr. Kurth said the background patter was likely oscillations of charged particles in the upper part of Saturn’s ionosphere where atoms are broken apart by solar and cosmic radiation. The louder tones were almost certainly “whistler mode emissions” when the charged particles oscillate in unison.

Status post example

Status post format displays the whole content of your post. It is a short status update, similar to a Twitter status update. You can set post featured image or your gravatar will be displayed instead.