If you have troubles since the update to WordPress 4.5 please read this post before opening a new thread.
In the post view there are 4 available formats for posts, Standard, Link, Post, and Gallery. I would like to add a new format called “Messages” or “Sermons” and add another custom icon the represents a sermon, as my client is a church. I realize that I must create 2 new include files, one for the loop and one for the format. What other templates must I edit in order to give myself this new option? Can you help point me in the right direction or is this out of the scope of support?
As far as I know, you can’t create custom post formats. The supported post formats are listed here: http://codex.wordpress.org/Post_Formats
You would need to create a custom post type (like the themes Portfolio Post type) if you wanted a custom styled taxonomy.
Got it. I guess what I was looking for was the audio option. I’m not a grand PHP programmer by any means, but managed to figure out how to create a loop-audio.php and format-audio.php and alter the includes file. So that got me what I wanted. Now I need to make the audio post so that it doesn’t click through to a redundant “single” post page and add an audio post icon into the Angular theme. Any help or shortcuts you could provide would be most helpful as I’m in a hurry and only do HTML/CSS by trade.
You just need to add the css for the post format type and the icon image to match it. The files you copied over are mostly html with a sprinkle of php to dynamically grab some data so you should be able to edit them fairly easily for your needs. eg, removing the a href element from the title so it only leaves the_title with the surrounding php tag.
The topic ‘Add A New Format Option In Post View’ is closed to new replies.