Giter Club home page Giter Club logo

acf-pages-by-template's Introduction

Advanced Custom Fields - Pages by Template add-on

adds a Pages by Template field to Advanced Custom Fields. Select pages by template.

Description

This is an add-on for the Advanced Custom Fields WordPress plugin and will not provide any functionality to WordPress unless Advanced Custom Fields is installed and activated.

The Pages by Template field provides a new kind of field which allows you to choose pages based on their assigned templates (custom templates). When creating the field in ACF you may choose one or multiple templates to display pages from. You can also choose the ability to select one page or more in which the type will change between checkboxes and radio buttons.

The return value is one or more post objects. Display these in the same way you would a Relationship field or Post Object field.

Source Repository on GitHub

https://github.com/jonathan-dejong/ACF-Pages-by-Template

Bugs, Questions or Suggestions

https://github.com/jonathan-dejong/ACF-Pages-by-Template/issues

Installation

  • Download the add-on and copy the folder fields containing the acf_pages-by-template.php file to your theme folder
  • Include the acf_pages-by-template.php in your theme's functions.php

if( function_exists( 'register_field' ) ) { register_field('acf_page_template', dirname(File) . '/fields/acf_page_per_template.php'); }

To do

  • Create an option to choose all pages
  • Create an option to choose the default template

acf-pages-by-template's People

Contributors

jonathan-dejong avatar

Watchers

 avatar

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.