Custom Post Type Slider Flexslider with Advanced Custom Fields

Place the following in your functions file or theme plugin:

It will register your post type, “slides”, and enqueue your javascripts, “jquery”, “custom” and “flexslider” that can be found further down.

These are the javascript files you need to include in a folder, “js” in you theme. The other points to google’s hosted version.
Custom.js
Flexslider.js

In a theme file, where ever…
This Custom Post Type includes the Advanced Custom Fields Plugin to use an image uploader, set to “image url”. This is in it’s simplest form. You can add more Custom Fields if you like and add them between the list item.

 

Finally, some css to get started.

Leave a Reply

Your email address will not be published. Required fields are marked *

− 8 = 1