Code Monkey home page Code Monkey logo

Comments (9)

 avatar commented on June 10, 2024
  • fw_get_db_settings_option('demo_addable_option_2') if the option is used in framework-customizations/theme/options/settings.php
  • fw_get_db_post_option($post_id, 'demo_addable_option_2') if the option is used in framework-customizations/theme/options/posts/{post-type}.php
  • fw_get_db_term_option($term_id, $taxonomy, 'demo_addable_option_2') if the option is used in framework-customizations/theme/options/taxonomies/{taxonomy}.php

from unyson.

webangon avatar webangon commented on June 10, 2024

Thank you.I tried to show the value but this returned nothing.Can you please point my mistake?

from unyson.

 avatar commented on June 10, 2024

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.

webangon avatar webangon commented on June 10, 2024

sorry fixed it.Thanks again for this framework

from unyson.

 avatar commented on June 10, 2024
echo implode(', ', fw_get_db_post_option($postid, 'demo_addable_popup_2', array()));

from unyson.

NwpDeveloper avatar NwpDeveloper commented on June 10, 2024

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.

 avatar commented on June 10, 2024

return all options in page-builder

It's not possible. page-builder options are available only in shortcode view.php

from unyson.

NwpDeveloper avatar NwpDeveloper commented on June 10, 2024

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.

 avatar commented on June 10, 2024

Yes, fw_get_post_option() is only for post options (any post type, not only blog posts)

from unyson.

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.