Comments (9)
What is your question?
from redux-framework.
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.
Are you using the data attribute with a select field?
from redux-framework.
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.
@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.
@dovy sorry, check attached for my code.
from redux-framework.
@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.
However, you can just use the global variable set by redux. Read this: http://reduxframework.com/docs/getting-started/
from redux-framework.
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)
- CSS/JS URL path is wrong HOT 1
- Repeater return array HOT 1
- Unable to load custom extension HOT 3
- pre loader issue HOT 1
- Problems with $args used as array and string in class Redux_WordPress_Data when you call a callback
- How to update ROOM HEADER SLIDER images? HOT 2
- I cannot change some elements on my PREMIEX theme, as pictures or sliders HOT 2
- Error in contact form HOT 1
- File Permission Issues We were unable to modify required files. Please ensure that /home/fitmaple/moccotheme.com/www/wp-content//uploads/ has the proper read-write permissions, or modify your wp-config.php file to contain your FTP login credentials as outlined here.. HOT 2
- Push Metabox field dynamically HOT 2
- Multilingual social media profiles HOT 1
- Check for object before assigning
- cannot click on pages HOT 1
- Can't change the home screen logo and colours of the theme HOT 1
- Unable to add variable products from woocommerce to my cart
- v4.4.10 - Undefined Variable $return in class-redux-filesystem.php
- Thecappa Theme - Animations can't be turned off HOT 1
- 4.4.10 Redux Upgrade - Fatal error HOT 1
- How to set default values for typography field with Redux::set_option? HOT 1
- change redux default values on child theme HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redux-framework.