Giter Club home page Giter Club logo

greenzone / cpt-permalinks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pietromalerba/cpt-permalinks

0.0 2.0 0.0 150 KB

Say hello to a WordPress framework built for CMS purposes with two example custom post types; one hierarchical (Products) and one with custom taxonomies (Recipes). The theme is focused on solving two common problems — achieving a template & menu architecture that works solidly, with permalinks that contain a taxonomy term in the URL e.g. /post-type/taxonomy-term/post-name

Home Page: http://cptp.builtbyboon.com/

cpt-permalinks's Introduction

Custom Post Type Permalinks

Say hello to a WordPress framework built for CMS purposes with two example custom post types; one hierarchical (Products) and one with custom taxonomies (Recipes).

The theme is focused on solving two common problems — achieving a template & menu architecture that works solidly, with permalinks that contain a taxonomy term in the URL e.g. /post-type/taxonomy-term/post-name

Products are essentially a replica of the default Pages functionality, and Recipes are a replica of Posts. The aim is to prove WordPress can be extended with flexible post types and search-friendly permalinks that mirror what comes out of the box.

This framework is intended as an extension of existing themes, giving you the templates and functions needed to get you up and running with your own Custom Post Types. As such this theme does not contain some of the standard WordPress templates (e.g. the blog), but it could be used as a starting point for a more straight-up CMS project. You may also find parts useful in other areas of your own theme, so take what you need!

Caveat: the CSS/styling is a bit primitive, the focus here is on WordPress!

Read all about it or Check out the demo

built by Boon - given away free

If you have questions or put this to use then hit me up on Twitter

Instructions

  1. Create a fresh install of WordPress on your server
  2. Download the theme and upload to the /wp-content/themes folder
  3. Activate your theme via the Appearance menu
  4. Set your permalink structure to /%category%/%postname%/
  5. You're done. Begin adding Products and Recipes to see the post types in action!

Further extensions

Here are some neat plugins I recommend to give additional functionality or make your life easier:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.