Reputation
Next privilege 50 Rep.
Comment everywhere
Badges
3 12
Impact
~17k people reached

  • 0 posts edited
  • 0 helpful flags
  • 3 votes cast
Feb
24
comment Metabox doesn't retain values
But if I go back and edit them again, I still get current data: string(0), and that would usually mean that the values are not actually saving, right? I will go and check the database, do a Search for one value..
Feb
24
comment Metabox doesn't retain values
Everything looks fine, right?! I've updated all the fields I have: current data: string(0) "" sent data: array(12) { ["title"]=> string(4) "test" ["body-text"]=> string(4) "test" ["link"]=> string(4) "test" ["img01-title"]=> string(4) "test" ["img01-url"]=> string(4) "test" ["img01-link"]=> string(4) "test" ["title-2nd"]=> string(4) "test" ["body-text-2nd"]=> string(4) "test" ["link-2nd"]=> string(4) "test" ["img02-title"]=> string(4) "test" ["img02-url"]=> string(4) "test" ["img02-link"]=> string(4) "test" } success:
Feb
24
comment Metabox doesn't retain values
Thank you for all your help. I've removed the concatenator from var_dumps after </pre> for both lines, and then I got this: string(11) "" string(16) "Array"success:. Now, what does it mean? That I have double quotes for the data inside and are not closed, and also on the link one.. that must be, my head is spinning now lol, I am starting to understand it, almost.
Feb
24
comment Metabox doesn't retain values
Yes @StephenHarris, it doesn't cause issues as it loads, otherwise my php file wouldn't show up in the admin section, right? As for the error, this is the first time I am using wp_die() and wp_die('message') will show me "message" as expected. This line instead: wp_die( '<pre>' . var_export( $post, true ) . '</pre>' ); will show me NULL, if placed before function or in the beggining, but after return, it shows nothing.
Feb
24
awarded  Editor
Feb
24
revised Metabox doesn't retain values
added 309 characters in body
Feb
24
asked Metabox doesn't retain values
Feb
23
asked Structure of custom post type / taxonomy?
Jan
16
accepted Category related -> excerpt, title and thumb in sidebar on article page
Jan
16
awarded  Scholar
Jan
16
accepted How to use pagination?
Jan
16
awarded  Tumbleweed
Dec
28
answered Category related -> excerpt, title and thumb in sidebar on article page
Dec
28
comment Category related -> excerpt, title and thumb in sidebar on article page
That looks fantastic, will use it next time. I have now lost way too much time on this and not only that, but I would really like to understand the problem properly so will try and fix my code. Thanks!
Dec
28
comment Category related -> excerpt, title and thumb in sidebar on article page
Thank you Jeremy, and sorry for my late reply. Well, yours is displaying me the thumb, title and excerpt but the title and the photo is the same, is just the excerpt which is changed accordingly. I think that means that the function is used well, the args are alright but the foreach is not functioning as it should, right?
Dec
20
asked Category related -> excerpt, title and thumb in sidebar on article page
Dec
20
comment How to use pagination?
Thank you very much, that did the trick. More important, I understand how to use it now, your post is sincerely appreciated. I also wanted to add a pharantesis as you've missed it but wouldn't let me as is less than 6 characters. For whoever else that needs this, change: if( function_exists('wp_pagenavi') to: if( function_exists('wp_pagenavi'))
Dec
19
asked How to use pagination?