This content is restricted to buyers of Metaboxes.
Hi Just purchased the metabox extension but can't enter the documentation... I get this error: "This content is restricted to buyers of Metaboxes."
Thanks
There is no documentation yet, contact Dovy if You need help.
I see... Actually Im struggling with the $opt_name, When I change it from "redux_demo" to something else, the metaboxes disappear.
You have to also change $redux_opt_name in config.php to match Yours.
i׳ve change it to: $option_name = "ks_page_metabox";
and in the front end:
global $redux_demo; print_r($redux_demo);
Still doesn't work...
Thanks
global $ks_page_metabox; print_r($ks_page_metabox);
or use code from sample theme
global $ks_page_metabox; $data_r = print_r($ks_page_metabox, true); $data_r_sans = htmlspecialchars($data_r, ENT_QUOTES); echo $data_r_sans;
doesn't work... It works perfectly only if I change it back to "redux_demo"
Here is the full code:
Settings <= } add_action('redux/metaboxes/'.$option_name.'/boxes', 'redux_add_metaboxes'); } require_once(dirname(**FILE**).'/loader.php'); //////// Front End ////////// global $ks_page_metabox; print_r($ks_page_metabox);
Put global $ks_page_metabox; print_r($ks_page_metabox); somewhere on the page, it won't show anything if You put it in the content.php
I've just added documents on the extensions loader (loader.php): http://reduxframework.com/docs/extension-docs/extensions-loader/
Seems like you didn't update the opt_name in there too.
I am working on the metaboxes documentation now. ;)
hi dovy, I already changed the opt_name in the loader.php but still have no luck with that.
maarcin, its on the page.php
Do you have permalinks working? How are your URLs. There is a bug I am wading through in the wordpress core. ;)
Yes its currently running on localhost so I can't send you a link
Michael
Sounds like you are you using sample-config.php as your options source (or a copy of it)?
In there, in the method setArguments() you'll see a few lines below, the variable opt_name defined.(Line 1315 in the version I have) It will probably say redux_demo. Change it to ks_page_metabox
'opt_name' => 'redux_demo', // This is where your data is stored in the database and also becomes your global variable name.
Hi qwertydude, changed it and it works! thanks.
Few more questions:
- Fields like switch, typography, media upload and more doesn't work on metaboxes... it works only if I add the field (even with another id) type to the option panel
- Do I have to change the class name from "Redux_Framework_sample_config" to something else? (if I change it, I get an error - Fatal error: Class 'Redux_Framework_sample_config' not found )
- Can I hide the default text?

- Is it possible to delete the old sample-config.php and "tests" folder?
Thanks again
- @michaelkk are you using 1.0.6? I thought I fixed that. I'll look into it further.
- Yes. There are two references to that class name in the file. Change it both places.
- In your ReduxFramework arguments you can set
default_showto false anddefault_markto '' and you'll be good.
@dovy 3 doesn't work. I have the same problem and I have
'default_show' => false, 'default_mark' => '',
and it still shows defaults
Ahh, so I need to pass in an args parameter then for metaboxes to override. sigh Heh. Can that wait until next week? Working on the webinar. ;)
Yeah sure... Look forward for this webinar :)
Just upgraded to 1.0.6 but these fields doesn't work
K, Just pushed a fix. I'll be emailing everyone about the new release. Sorry for the delay. I couldn't reproduce. I've been able to now. ;)