• Hello!

    I bought a premium theme and i really cant add images in my slideshow gallery. I have tried to add it with featured image, with sticky post but no success. I have set the category for my slideshow from my theme settings but i no image is desplayed… There is the code about adding the image in slide show:

    <?php
     $files = get_children("post_parent=$id&post_type=attachment&post_mime_type=image&orderby=menu_order&order=ASC");
    if($files){ // dos
            $keys = array_keys($files);
            $num=$keys[0];
            $img=wp_get_attachment_url($num);
    	  ?>
            <?php $theimage = ''.get_bloginfo("template_url").'/thumb.php?src='.$img.'&w=960&h=350&zc=1&q=90&cropfrom=topcenter'; ?>
            <?php } else { //dos ?>
            <?php $theimage =''.get_bloginfo('template_url').'/thumb.php?src='.get_bloginfo('template_url').'/pix/default/default_carousel.png&w=960&h=350&zc=1&q=90&cropfrom=topcenter';?>
            <?php }  //dos ?>
            <div class="item item_<?php echo $i; ?>" style="background-image:url(<?php echo $theimage; ?>)">
            <img src="<?php echo $theimage; ?>" width="960" height="350" alt="<?php the_title_attribute(); ?>" />
            </div>
            <?php endforeach; ?>
          </div>

    I am new in wordpress. Can anyone help me and tell me how to add the images? Thanks a lot..!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Have you just tried inserting an image into your post? it looks liek it’s looking for an attachment in the post

    Beyond that we can’t help with premium (paid) themes much, as we can’t install and test them. You would be best asking the vendor/dev directly

    Have you tried to contact where you bought the theme as there are so many themes and they will be able help as we have no knowledge on how the theme is designed.

    Thread Starter Thalassopouli

    (@thalassopouli)

    Thanks for quick response. I tried to add an image into my post but no success as well… Govpatel i have tried to contact with the website where i got the theme but they didnt response… I mean it…! As i can see also there are not responses in their forum… (http://storelicious.com) My website is http://wpkavatza.hostoi.com/. I would really appreciate some help! Thanks!

    looks like the host has put your website in review

    Website Under Review

    You are seeing this page because the system administrator of 000webhost.com is currently checking this website for malicious content.

    Thread Starter Thalassopouli

    (@thalassopouli)

    I cant understand govpatel! I can refresh my webiste and there is no message like that! I am sorry! 🙁

    Thread Starter Thalassopouli

    (@thalassopouli)

    Yeah, you are right! 🙁 I can see my website cause i am logged in! Anyway thanks for your intrest! 🙁

    I am getting a different page log out clear your cookies and see if you see your website

    Thread Starter Thalassopouli

    (@thalassopouli)

    Its ok govpatel! But is there any other way to insert images in slideshow? What about custom fields? ;/

    As I said all themes are designed differently is hard help without looking at theme in admin panel.

    Thread Starter Thalassopouli

    (@thalassopouli)

    ok govpatel! thanks anyway!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘How to add images in my Slideshow?’ is closed to new replies.