Giter VIP home page Giter VIP logo

Comments (9)

dovy avatar dovy commented on May 21, 2024

What is your question?

from redux-framework.

dodzki avatar dodzki commented on May 21, 2024

It's about the output of Posts Multiple Select for the theme front-end. Tried lots of method with get_posts(); and I couldn't make it work.

from redux-framework.

dovy avatar dovy commented on May 21, 2024

Are you using the data attribute with a select field?

from redux-framework.

dodzki avatar dodzki commented on May 21, 2024

nope. I was selecting multiple posts to use it as my featured posts in the front-end.

At the front-end; I only want to show the featured image and title.

from redux-framework.

dovy avatar dovy commented on May 21, 2024

@dodzki I'm confused by your question.

WIth the multi-select field 'multi'=>tru, using the 'data'=>'posts' attribute you will get a selectable multi-select field that will return to you the IDs of posts.

Is that not working or you unsure of how to recover the post given the IDs returned?

from redux-framework.

dodzki avatar dodzki commented on May 21, 2024

@dovy sorry, check attached for my code.

multi_select

from redux-framework.

evertiro avatar evertiro commented on May 21, 2024

@dodzki Let me see if I can help out real quick...

I think there's been a slight misunderstanding in how to retrieve stored values. We provide several possibilities, but it looks like the closest to what you're trying to do would be the use of the WordPress get_option function. Using this function, your code should begin something like this. Note that there is no function redux_option() so using it will only cause errors.

from redux-framework.

dovy avatar dovy commented on May 21, 2024

However, you can just use the global variable set by redux. Read this: http://reduxframework.com/docs/getting-started/

from redux-framework.

dodzki avatar dodzki commented on May 21, 2024

it doesn't work. but I use the post__in array to make it work.

$fw_num = webbysolve_option('fwork_option');
$fwork = webbysolve_option('select_works');
        
$args = array(
        'posts_per_page' => $fw_num,
        'post__in' => $fwork
);

from redux-framework.

Related Issues (20)

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.