• Is there a code that I can add to the theme in order to enable it to search media files as attachments?

    I know WP mediatagger allows that, however, I prefer not to use mediatagger as it doesnt matches with the theme.

    And where can I find the search.php file?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter abshah

    (@abshah)

    I just solved half of the issue. I used Search Everything plugin and it filters out the attachments for me. However,

    The result page shows up the image in a post. Even if there is only 1 image in the result, the result page shows it in a post, and when I click on the post a new page opens up showing the image thumbnail. And then to view the image I have to click on thumbnail How can I make the result page, display the image/images thumbnails directly on the result page, rather than showing them as a post/posts? So that I only have to click once to view the image.

    Thanks

    Theme Author OptimizerWP

    (@layerthemes)

    Hi

    Try this,While uploading the image, make sure you set it to media.

    View post on imgur.com

    Thanks

    Thread Starter abshah

    (@abshah)

    Thanks for replying first of all.

    So I tried what you said and the results does not change. It doesnt matter if the image is uploaded as media or attachment. Either way the results are displayed as a post. Even if it is ONE single image, it shows up as a post. So my users have to click on the post first to open the page containing the image AND THEN click on the image to view.

    All I want is to directly display the images on the result page. So which ever image users wants to enlarge, he/she can do so by clicking on it.

    I believe that its your theme feature as for past two weeks I have been going crazy with all the search plugins and end up with the same result. I even wrote to plugin authors and they told me to ask you as it is a theme feature.

    I am sure there must be someway of doing it.

    Thanks

    Theme Author OptimizerWP

    (@layerthemes)

    Hi

    We have lightbox feature for images, which will prevent the image from opening in new page. But to alter or revamp the search altogether acording to your need requires a lot of tweaking and customization. But we are thinking of adding something like this in later version 🙂

    It would be better if you could post your site address here.

    Thanks

    Thread Starter abshah

    (@abshah)

    ishteyhaar.com

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

The topic ‘Searching attachments’ is closed to new replies.