Okay
  Public Ticket #2753410
Retrieve List of Portfolio Items in function.php
Closed

Comments

  • pixelpaperstudios started the conversation

    Dear neuron team,

    I am right now trying to create a custom portfolio-item list and was wondering if it is possible to retrieve a list of all portfolio items in the function.php of the bifrost child theme. 

    I added a ACF user-element to the portfolio item want to iterate through the portfolio items and display the item only when a specific user (the logged-in user) is set in a portfolio item. 

    Is this possible with the portfolio function of the theme or can a custom query be implemented so I can use the neuron posts element in elementor? 

    Thank you in advance!

    Best regards, Dominik

  •  675
    Neuron replied

    Hi Dominik,

    I am sorry for the late reply, we didn't work on the weekend.

    I can help you with both cases, but please let me know with a certain example of what you're trying to achieve. So, I can add filters and actions to the actual queries in the update that's coming and we can manipulate only from the child theme.

    Kind Regards


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

  •   pixelpaperstudios replied privately
  •  675
    Neuron replied

    Hi Dominik,

    I apologize for the late reply, the response usually takes 1 business day. But, we've experienced some Covid restrictions.

    I have started implementing it through the code, but it seems like it would be quite impossible without a full rewrite.

    So, what I've found on the way.

    https://wordpress.org/plugins/content-control/

    You can create custom roles and separate them as you wish, with user roles, classes, and much more.

    The problem with the existing gallery of the portfolio item is that we can add only PHP conditions there, and It would be pretty much static.

    Check one that already exists, if the user hasn't provided the password if it is password protected the content will not be displayed.

    Kind Regards


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

  •   Neuron replied privately