Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End [Solved] Custom field

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #25664
    Azezer
    Participant

    Hey, i have been hanging around for a while and realy enjoy chris work with this site :) .

    Now, im trying to learn some more advanced stuff in wordpress.

    And right now im trying to list products on a page, i have almost no experience with php so ive run into some problems.

    What i want to do is list products on a page, each product in a div with a thumb, a description and a price. all typed in from a custom field.

    Ive managed to get the description and the price printed on each product, but the thumb isnt showing.

    The page works fine, the products all list fine exept the image.

    I would apprichiate if someone could point me in the right direction here.

    Code:
    ID, “product”, false);

    if ($products[0]==””) { ?>

    Products

    ‘.$descrip.’   ‘.$price.’   

    ‘; } ?>

    In the custom field i type in information like this: (img url)&(description)&(the price).

    I run wordpress 2.8 and php5 on one.com

    //Azezer

#61834
TheDoc
Member

What is being outputted? Do you have a link?

#61843
Azezer
Participant

Here is the link:

http://azezer.se/blog2/

//Azezer

#61845
TheDoc
Member

Ah, it’s working fine, it’s just that you missed an equal sign after "src":

echo ‘<div class="grid">’.$descrip.’&nbsp;&nbsp;&nbsp;’.$price.’&nbsp;&nbsp;&nbsp;<img src="’.$img.’" /></div>’; } ?>

#61846
Azezer
Participant

Haha, thank u =)

sometimes it feels like i earn a gold medal ;)

So, now i can continue the learning process =)

// Azezer

#61847
Azezer
Participant

This is now resolved, cant find the button for it.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘Back End’ is closed to new topics and replies.