Comments (9)
fw_get_db_settings_option('demo_addable_option_2')
if the option is used inframework-customizations/theme/options/settings.php
fw_get_db_post_option($post_id, 'demo_addable_option_2')
if the option is used inframework-customizations/theme/options/posts/{post-type}.php
fw_get_db_term_option($term_id, $taxonomy, 'demo_addable_option_2')
if the option is used inframework-customizations/theme/options/taxonomies/{taxonomy}.php
from unyson.
Thank you.I tried to show the value but this returned nothing.Can you please point my mistake?
from unyson.
Sorry, I made a mistake.
The fw_get_db_post_option()
first parameter is the post id then the option id. (I updated the comment above)
You can find those functions in docs
from unyson.
sorry fixed it.Thanks again for this framework
from unyson.
echo implode(', ', fw_get_db_post_option($postid, 'demo_addable_popup_2', array()));
from unyson.
Is fw_get_db_post_option() used for blog posts or can I use it to return all options in page-builder?
When I print fw_get_db_post_option(0) it returns all options for the page_id and shows 'btn_color' inside the json array.
If I print fw_get_db_post_option(0, 'btn_color') it returns null.
If not how can I get the page-builder options like $atts in shortcode view?
from unyson.
return all options in page-builder
It's not possible. page-builder options are available only in shortcode view.php
from unyson.
Ok Thanks.
Then is fw_get_post_option() only for blog posts because it returns the current pages options if printing from the view?
from unyson.
Yes, fw_get_post_option()
is only for post options (any post type, not only blog posts)
from unyson.
Related Issues (20)
- Request failed. Error code: 403
- Menus Disappeared HOT 1
- Version 2.7.28
- Patch for v2.7.28 to fix missing capability checks HOT 54
- Access violation vulnerability HOT 4
- Something went wrong with the plugin API HOT 4
- Plugin contains an unpatched security vulnerability HOT 4
- Unable to Install Unyson demo content HOT 4
- Unyson is not working with php 8.0 HOT 1
- DEMO CONTENT IS NOT INSTALLING ON USING UNYSONS HOT 3
- Unable to install demo content plugin HOT 3
- Unyson Fork - slowing website
- obsolete front page displayed HOT 1
- Cant EDIT Wordpress pages
- Unyson removed from wordpress.org HOT 2
- Notice: Undefined variable: Solution
- Cant install demo content plugins faulty HOT 2
- The site structure is broken HOT 2
- Is Unyson a no longer a supported product? HOT 1
- SSL Access Violation
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 unyson.