Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter artinh82

    (@artinh82)

    Hey Michael,
    Thanks for your reply.

    I just tried the code, and all I get is ‘0’.

    Maybe this will help… this is the code that I use to display the cost for each project:

    <?php
    	echo '<ul>';
    
    	query_posts('category_name=active-project');
    	while (have_posts()) : the_post();
    
    	$cost = get_post_meta($post->ID, 'project_cost', true);
    	echo '<li>'.$cost.'</li>';
    
    	endwhile;
    
    	echo '</ul>';
    ?>

    The above code will output something like this:
    100.00
    150.00
    120.00
    200.00

    What I need to do, is get the sum of all the above amounts.

    Thread Starter artinh82

    (@artinh82)

    Hi shadum,
    Thank you for your quick reply.

    I was afraid sql query would be really complicated.

    Going back to your suggestion, what kind of function would do the job? I’m not very great at PHP/SQL (Otherwise I wouldn’t be in this mess to begin with ?? )

    The overall goal is to separate the value of the post_info so that I can have more flexibility to move things around in the frontend.

    Right now, every time I call the post_info metabox in the frontend, I get the entire value
    Size: 2Mb
    Source: XYZ
    Dimension: 800×800

    But I want to be able separate Size, Source and Dimension from each other, so that I can move things around if I need to.

    Nobody has come up with a solution?
    Any help please?

    Thank you in advance.

    I’m having the same problem with v2.7
    Has anyone found the solution yet. If yes, please be kind enough to share with everybody else.

    Thank you.

    Thread Starter artinh82

    (@artinh82)

    I’m still need some help with the above. Thank you

    Forum: Your WordPress
    In reply to: Critique My Website

    It’s a great site. I’ll be coming back for sure.

    I have a football wallpaper site my self.

    https://www.futbolwallpapers.com

    Feel free to check it our when you get a chance.

    You’re welcome.
    Well, the plugin that i’m using is “jQuery Lightbox 0.5″. Once you activate the plugin, you have to add rel=”lightbox” in the link for each image.

    i.e.:
    <a rel="lightbox" href="/images/image1.jpg" title="my first image"><img src="/images/image1.jpg" alt="my first image" width="150" height="110" /></a>

    jQuery Lightbox 0.5 – Download

    Thread Starter artinh82

    (@artinh82)

    Hi iridiax,
    Thank you for your reply.
    That is actually very similar to what I’m looking for. I tried it and it seemed to work in most cases.

    But I also forgot to mention, that some of my posts are published in two categories.

    i.e.:
    Post1 is published in “Cars” & “BMW”
    Post2 is published is “Bikes” & “Yamaha”

    I tried the following

    <?php 
    
    if ( in_category( 'cars' ) &amp;&amp; ('bmw')) {
    	echo "Something about Cars and BMW";
    } else {
    	echo "Something else";
    }
    ?>

    That doesn’t work. Actually the code it self does work, it just does seem to recognize the category, therefor it echos “Something else”.

    Any suggestions.

    Thank you.
    Artin

    Thread Starter artinh82

    (@artinh82)

    Hi stvwlf,
    Thanks for your reply.

    I checked my post edit page, and couldn’t find any duplicates (which is good). But the duplicates where still coming up in the search results. Then for another reason, not related to this issue, I had to turn off my “Ultimate Tag Warrior” plugin, and when I did a search again, the duplicate in the search results where gone.

    I’m not sure why, but since I have turned off “Ultimate Tag Warrior” plugin everything is fine again.

    However, I’m still using the “Ultimate Tag Warrior” plugin on one of my other blogs, without having the duplicate post issue.

    I have too look further into this, and figure out what is causing this.

    Thanks again.

    Very nice blog. Nice design and structure.

    One thing that I would recommend is if you use some kind of a lightbox plugin for your images. Instead of opening the image in a new page when your visitor clicks on it…with the lightbox plugin the image will open on top of your site. It looks much nicer.

    Just a suggestion, but other then that everything looks great.

Viewing 10 replies - 1 through 10 (of 10 total)