Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I record my problem here.

http://www.screenr.com/pg88

Does someone know what I am doing wrong?

share|improve this question

2 Answers 2

usually you need to

global $custom_metabox;
$custom_metabox->the_meta();

as described in the alchemy docs. however i can't tell more unless you post your code.

share|improve this answer
    
I solved my problem other way but thx :) –  Itachi Mar 5 '12 at 15:20
    
i saw that, but i think it defeats the purpose of using alchemy if you are going to fallback to get_post_meta(). i use alchemy all the time and probably could have solved this for you w/ code posted. in my opinion you will get better/more responses if you post code instead of a screencast –  helgatheviking Mar 5 '12 at 17:47
    
I usually use get_post_meta but had a problem... tried your way and it fixed my problem instantly. Thanks! –  Shane Hudson Sep 7 '12 at 10:25

Try moving your $metabox->the_value('title') inside your custom loop.

The WPAlchemy object usually tries to get meta information for specific posts, not a bunch at once.

Sorry about the $metabox variable above, I couldn't see what variable you're using.

share|improve this answer
    
So I moved $simple_mb->the_value('title') inside my custom loop and still nothing. –  Itachi Mar 4 '12 at 16:31
    
Try adding the global $simple_mb; inside the loop as well. –  guiniveretoo Mar 4 '12 at 17:23
    
I did this too. But still nothing –  Itachi Mar 4 '12 at 18:02
    
Finaly I solved my problem with this piece of code <?php $meta = get_post_meta(get_the_ID(), $custom_metabox->get_the_id(), TRUE); echo $meta['title']?> but with this my problems don't end. I echo my values correctly but they showed only in last post. Here is screen imageshack.us/photo/my-images/825/wpalchemiproblem.jpg Does someone know how to fix it? –  Itachi Mar 4 '12 at 18:40

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.