Join Chris Converse for an in-depth discussion in this video Creating a custom post type, part of Creating a Marquee in WordPress with jQuery.
…Now to create a custom post type in WordPress, we…need to add a custom script, inside of the functions.php.…But what I want to do instead, is, use a file…inside of the PHP folder, inside of the My Marquee.…Basically, we have an include here, where we're going…to include this file, inside of the main functions file.…This way, if we want to move our marquee to another…theme, we have all of our logic in one place.…So let's come in here and let's open…marquee_functions_include.php, inside of the my My Marquee folder.…And now with this file opened in the…text editor, let's swicth back to the exercise files.…
Let's go into folder three, and let's open up a_snippet.html.…Now, inside of the snippets file, let's scroll down and find snippet one.…Here we have the WordPress code, to create…a custom post_type, that starts with a function.…We can create a function name.…I just called this create_post_type_marquee.…Inside of here we're going to register a new post_type.…We're going to give it a unique name, so marquee_panel.…
This course was created by Chris Converse. We're honored to host this training in our library.
- Adding photos to the Media Library
- Creating a custom post type
- Adding custom CSS to your theme
- Retrieving data from the custom post type
- Injecting HTML and navigation
- Styling the large and small marquees
- Reordering the marquee panels
Skill Level Intermediate
Q: This course was updated on 11/25/2014. What changed?
A: We added one new movie about the dangers of modifying updateable themes.