Forum Replies Created

Viewing 4 replies - 16 through 19 (of 19 total)
  • I am having the same problem.

    Installed HeadSpace2, added a custom field called “first-name”
    In the themes, I am calling it with the following code:
    <?php echo MetaData::get_custom (‘first-name’); ?>

    Nothing was showing up. Then I realized the same field – “first-name” is also on every individual post. When I enter something in the “first-name” field on the individual post, it returns the value.

    But, how do I access it for specific categories?

    Thank You!

    Forum: Plugins
    In reply to: Password protect category

    Hi,
    I am having the same problem.
    toqueboy – what plugin did you actually end up using?

    Thanks,
    Jenny

    i think i figured this one out.
    since the duplicates always appear next to one another you just have to have 2 variables that remember the id of the current post, and the id of the previous post. if the ids are the same you don’t show anything.

    <? $oldID = 0; ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    	<? $currentID = $post->ID; ?>
    	<? if ($oldID == $currentID) { ?>
    
    // shows nothing if the ids are the same
    
    	<? } else { ?>
    
    // search result goes here 
    
            <? $oldID = $currentID; ?>
    	<? } ?>
    <?php endwhile; ?>
    <?php else : ?>
    No posts matched your search results.
    <?php endif; ?>
    jvolvovski

    (@jvolvovski)

    Did you make any changes in the upload.php files?

    See if you get an errors in Firefox.

    I was having a similar problem and it turned out I added a double quote instead of a single quote in upload-js.php.

Viewing 4 replies - 16 through 19 (of 19 total)