Forum Replies Created

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

    (@spartancopy)

    Thanks for the help bcworkz. I tried your suggestion of var_dump($shortcode_tags) but strangely the artpal shortcode was not listed. However it turns out I will not be using the artpal plugin due to a massive security risk in the coding. I think I’ll need to revert to using something like WP e-commerce.

    Turns out if you save the product page off-line and view/edit the page source you can manually set the price of a product as the paypal button has it in a simple list for all to see and edit.

    <input type=”hidden” value=”134″ name=”item_number”>
    <input type=”hidden” value=”300.00″ name=”amount”>
    <input type=”hidden” value=”GBP” name=”currency_code”>
    <input type=”hidden” value=”1″ name=”quantity”>

    Thread Starter SpartanCopy

    (@spartancopy)

    I miss typed the code above.

    I’ve tried <?php echo do_shortcode ('[artpal=insert]'); ?> however this just displays the text [artpal=insert]

    Thread Starter SpartanCopy

    (@spartancopy)

    Sorry about the late replay.

    I am now using ArtPal which seems to work ok. It is certainly not as good as image store. It is only the shopping cart feature and does not include a gallery but it is simple to use, allows individual pricing and can be set to remove/disable the sale of times once they are sold out (good for one off paintings). Apart from not having its own gallery, the only downside I have seen so far has been that you cannot add the shortcode directly in to the template as php. However I have request help to see if there is a workaround.

    @prasath Mani – That website looks class. How did you set the individual pricing?

    Thread Starter SpartanCopy

    (@spartancopy)

    Anyone?

    Thread Starter SpartanCopy

    (@spartancopy)

    Turns out all you have to do is add one line to the initial argument. (change 22 to the ID of the parent page)

    'post_parent' => '22'

    so it becomes

    $args=array(
       'showposts'=>5,
       'post_type' => 'page',
       'caller_get_posts'=>1,
       'post_parent' => '22'
       );

    Remember to add a comma , to the line before ‘post_parent’ so it knows it is a different argument.

    Thread Starter SpartanCopy

    (@spartancopy)

    I have managed to find this but I do not know how to change it so it only calls the newest sub-pages of my design page, rather than calling the last 5 pages of the whole site.

    <?php
       $args=array(
       'showposts'=>5,
       'post_type' => 'page',
       'caller_get_posts'=>1
       );
    $my_query = new WP_Query($args);
    if( $my_query->have_posts() ) {
      while ($my_query->have_posts()) : $my_query->the_post(); ?>
        <div>
          <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?>
            <?php  echo "<img src='" . get_post_meta($post->ID, "Product_Image", true) . "' />"; ?>
          </a>
        </div>
      <?php
      endwhile;
    }
    ?>
    Thread Starter SpartanCopy

    (@spartancopy)

    I did a work around. For some reason it wouldn’t display the image so I’ve set it up to use the image from the lastest product within that category.

    Thread Starter SpartanCopy

    (@spartancopy)

    For anyone looking to include a lightweight, simple but very customizable slideshow/gallery then I would recommend using portfolio slider

    • Can be embedded directly into your template or it can be applied using a shortcut code [portfolio_slideshow].
    • Simple to configure – A new tab labeled Portfolio Slideshow is added to the settings tab of the dashboard
    • CSS is easy to edit for further styling.
    • Lots of helpful documentation to help you fully customise your look and feel.

    I wanted my thumbnails to the right rather than the top or bottom so I simply floated them to the right and set the thumbnail container width so they would appear in a vertical column.

    You don’t need to know any PHP and it saves coding everything from scratch.

    Thread Starter SpartanCopy

    (@spartancopy)

    Well I tried the code you game me and it still isn’t working. I tried putting in a location straight in to the src.

    echo "<img src='/image/accessories.jpg' />";

    And it works fine, obviously! but when I try using php like the code you gave me, and like the code i had before it just seems blank, no errors, but also no image.

    Any suggestions? I think I may have to go through it bit by bit to see what I have missed!

    Thread Starter SpartanCopy

    (@spartancopy)

    Thanks for the quick response.

    Originally I had images within a folder in my theme called ‘images’, hence the “/images/accessories.jpg”. However since it is my sister who is going to be using the site. I thought it would be easier if she could just upload the images to the media library then she could just copy and paste the image path to the custom field.

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