Okay
  Public Ticket #2051069
Custom Post types
Closed

Comments

  • elyawhoo started the conversation

    Good Day!

    We already have many established CPT with content and we need them to display in the structures of the Neuron Core Elements. How can we achieve this?

  •  675
    Neuron replied

    Hi,

    This requires a lot of extra work, can you please provide me with your wp-admin, I will create the new Custom Post Type for you, then explain it.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  •   elyawhoo replied privately
  •  675
    Neuron replied

    Hi,

    I have added the other post types.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • elyawhoo replied

    Can you please help me to understand what i must to do when adding new CPT's?

  •  675
    Neuron replied

    Hi,

    Here's the process in adding new Custom Post Types for Bifrost.

    You need to go at Plugins Editor and open the Neuron Core plugin.

    1. Open the file at includes > widgets > posts > base.php. 
    2. Go to line 90, search for 'posts_type' and add your new custom post types as array in the list. http://prntscr.com/o49fat
    3. Go to line 212(if you need to pull them from categories, if you don't need ignore this step). Make the condition appear on the post types that you have created too. http://prntscr.com/o49g2l - If you're using any other term, change the name in line 161. http://prntscr.com/o49gko
    4. And the query part(key one), add your custom post types to the query via the switch option. http://prntscr.com/o49h7v

    Feel free to ask for anything you need.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  •   elyawhoo replied privately
  •   Neuron replied privately
  • elyawhoo replied

    As we understand we have added CPTs in code of "plugins / neuron-core-bifrost / includes / widgets / posts / base.php"

    but can't find the line you noticed and still no out CPTs in post type selection ...after new update we can't understand where are we wrong :)

  •  675
    Neuron replied

    Hi elyawhoo,

    I have just explained that in the other ticket, I have tested it also, it works great. Just make sure that you're running 2.0.0 version of plugin(Neuron Core) and the theme.

    https://neuronthemes.ticksy.com/ticket/2144400/

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.