Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
8
Impact
~4k people reached

  • 0 posts edited
  • 0 helpful flags
  • 3 votes cast
Dec
4
comment get_post_type() in in_array doesn't work for some reason
I thought this would work, but it's not. I guess i can't call add_meta_boxes when i have a class for metaboxes. I have updated my question so you can see what class vivid_framework_metaboxClass is firing.
Dec
4
revised get_post_type() in in_array doesn't work for some reason
added 128 characters in body
Dec
4
revised get_post_type() in in_array doesn't work for some reason
added 212 characters in body
Dec
4
comment get_post_type() in in_array doesn't work for some reason
As i said everything works if i don't use in_array( $post_type, $value['screen'] ) combination. I already said get_post_type() returns 'page' the consturctor of class works good it shows and saves everything as it should. and metabox keys is just a typo here in post. foreach loop is activated inside function which is called by add_action( 'load-post.php', 'call_vivid_framework_metaboxClass' ); I did made a workaround by using in_array in class constructor instead a function but i am still curious why it doesn't work inside function here.
Dec
3
asked get_post_type() in in_array doesn't work for some reason
Jun
19
awarded  Popular Question
Mar
8
awarded  Autobiographer
Jul
17
comment Connecting multiple post types? Or linking “News” posts with “Game” posts how?
i was thinking about that too stoopkid1 but than i have to make that "game" categori a bit different and fill up with some info like tags, release date, screenshot... which will make it really hard to do if it's category.
Jul
16
comment Connecting multiple post types? Or linking “News” posts with “Game” posts how?
From what i seen on plugin page this might help, ill go and install it and check out what i can do with a plugin.
Jul
16
comment Connecting multiple post types? Or linking “News” posts with “Game” posts how?
I was thinking something like that, just other way around. Each game have it's own category and sub category news tutorials etc... just im not sure how would i link that into one post.
Jul
16
asked Connecting multiple post types? Or linking “News” posts with “Game” posts how?
Mar
7
comment wp_schedule_event won't accept args
Im on local server xampp on linux. ill checkout log files, i just don't know where they are.
Mar
7
comment wp_schedule_event won't accept args
im adding everyhour and interval is set to one minute because of testing, i can't wait whole hour between every change. Once everything is working ill switch to hourly. What doesn't work is firing schedule when array() values are set. I tried debug but don't get any errors. Dont know where to look for error logs.
Mar
7
asked wp_schedule_event won't accept args
Mar
2
comment Get categories list with category name in custom WP_List_Table class
No, sorry i just jumped into conclusions too early, one of my grandchildren category was empty so i just added 'hide_empty' => 0 into get_categories to show missing category.
Mar
2
comment Get categories list with category name in custom WP_List_Table class
Well you see the code i posted in my question with foreach loop i used it in themes many times, there was theme recently i built where i had to pull specific categories by their id's and worked perfectly to display name and description. But for some reason it doesn't work in walker at least not from what i was trying. Anyway i have a problem when there are 2 or more children categories it doesn't display them in the list now.
Mar
2
awarded  Supporter
Mar
2
comment Get categories list with category name in custom WP_List_Table class
Yes yes this did the trick from all the tests that i did i always got back the array and tried to isolate only names from array but no luck. looks like wp_list_pluck does that job i didn't even know that this exists. Thanks for your help.
Mar
2
accepted Get categories list with category name in custom WP_List_Table class
Mar
2
comment Get categories list with category name in custom WP_List_Table class
Im using it on my plugin on custom options page to list all the inputs i have previously put in the database.