ACF-CPT-Options-Pages | Small addon for ACF Options | Content Management System library

 by   Tusko PHP Version: Current License: GPL-3.0

kandi X-RAY | ACF-CPT-Options-Pages Summary

kandi X-RAY | ACF-CPT-Options-Pages Summary

ACF-CPT-Options-Pages is a PHP library typically used in Web Site, Content Management System, Wordpress applications. ACF-CPT-Options-Pages has no bugs, it has no vulnerabilities, it has a Strong Copyleft License and it has low support. You can download it from GitHub.

Small addon for ACF Options. Adds ACF location for each custom post type. You can install it from Wordpress Plugins Repository.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              ACF-CPT-Options-Pages has a low active ecosystem.
              It has 69 star(s) with 14 fork(s). There are 9 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 0 open issues and 14 have been closed. On average issues are closed in 29 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of ACF-CPT-Options-Pages is current.

            kandi-Quality Quality

              ACF-CPT-Options-Pages has 0 bugs and 0 code smells.

            kandi-Security Security

              ACF-CPT-Options-Pages has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              ACF-CPT-Options-Pages code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              ACF-CPT-Options-Pages is licensed under the GPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              ACF-CPT-Options-Pages releases are not available. You will need to build from source code and install.
              Installation instructions, examples and code snippets are available.
              It has 157 lines of code, 14 functions and 4 files.
              It has high code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed ACF-CPT-Options-Pages and discovered the below as its top functions. This is intended to give you an instant insight into ACF-CPT-Options-Pages implemented functionality, and help decide if they suit your requirements.
            • Register a post type options page .
            • Setup post type options page
            • Get custom post types
            • Add plugin action links .
            • Setup the plugin .
            • Get the registered cpts .
            • Render options page .
            • Display admin error notice
            • Load plugin textdomain .
            • Load settings page template .
            Get all kandi verified functions for this library.

            ACF-CPT-Options-Pages Key Features

            No Key Features are available at this moment for ACF-CPT-Options-Pages.

            ACF-CPT-Options-Pages Examples and Code Snippets

            No Code Snippets are available at this moment for ACF-CPT-Options-Pages.

            Community Discussions

            QUESTION

            Wordpress ACF: Using a page (with a specific page template) as a CPT archive page
            Asked 2018-Apr-26 at 21:59

            I'm using ACF to create pages with separate flexible layout sections in two areas, the main page section area and a sidebar area.

            I have a CPT called case-studies and have created a page called case-studies. I have set 'has_archive' => false, within the CPT in the hope that the page is used however (and I understand) that there is a hierarchy to this so that if no archive is given, then it will load my home.php (which is what I am using for my news, the posts post type).

            Is there any way for a page to be used as an archive for a CPT? The only solution I can see at the moment is to use the ACF CPT Options Pages plugin and attached the ACF fields I have created to my 'Case Studies Archive' page however, I would have to duplicate all of my code so that they can called the right content. For example:

            the_field('field_name'); to the_field('field_name', 'cpt_case-studies');

            Has anyone been able to use a page as an archive for a CPT and assign a template to the page which both queries the CPT posts and have the ACF fields from the page?

            Thanks very much for your help. If there is anything else I can supply, let me know.

            ...

            ANSWER

            Answered 2018-Apr-24 at 12:41

            The best approach for this is to have the has_archive parameter set to true and then create an archive-case-studies.php template in your theme. You can still make use of custom fields from ACF. When you use the_field() and the_get(), the second accepted parameter is the post id, but this is automatically set based on the current global object.

            For example:

            Source https://stackoverflow.com/questions/50001531

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install ACF-CPT-Options-Pages

            Upload 'acf-cpt-options-pages' to the /wp-content/plugins/ directory.
            Activate the plugin through thePlugins menu in WordPress.
            Go to Custom fields submenu CPT Options page and activate CPTs what you need or create subpages for that.
            Create your Custom Field Group, set location rule Options Page and choose your CPT options page or subpage.
            Read the documentation to display your data.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/Tusko/ACF-CPT-Options-Pages.git

          • CLI

            gh repo clone Tusko/ACF-CPT-Options-Pages

          • sshUrl

            git@github.com:Tusko/ACF-CPT-Options-Pages.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Content Management System Libraries

            Try Top Libraries by Tusko

            vimeo-private-downloader

            by TuskoJavaScript

            brackets-wp-hint

            by TuskoJavaScript

            WP-Anatomy

            by TuskoPHP

            nodejs-url-shortener

            by TuskoJavaScript