Posting without image

Viewing 10 posts - 1 through 10 (of 10 total)
  • #2335
    Unregistered
    Participant

    Hi,

    thanks for the great theme.

    If I post someting without a picture, the Gallery shows an empty picture with the text on my first site.
    How can I fix that. Can I exclude a posting from the Gallery ?

    Thanks for help in advance.

    WordPress 3.1.2

    #2336
    Daniel Tara
    Keymaster

    Not as of yet, it can not.

    #2337
    ivlivs
    Participant

    Couldn’t you just exclude posts that don’t have a featured image?

    Thank you!

    #2338
    Daniel Tara
    Keymaster

    You can manually exclude posts by adding arguments to the [code]query_posts[/code] function in loop-slider.php. [url=http://codex.wordpress.org/Function_Reference/query_posts]You can read about the function’s arguments here.[/url]

    #2339
    ivlivs
    Participant

    I could not find how to exclude posts without images, but I managed to limit the gallery to only one category. It can be acceptable as well, thanks.

    #2340
    frX
    Participant

    ivlivs said:
    I could not find how to exclude posts without images, but I managed to limit the gallery to only one category. It can be acceptable as well, thanks.

    How did you manage to get it to only show one category?

    #2341
    frX
    Participant

    frX said:
    How did you manage to get it to only show one category?

    I fixed this too, with a plugin called “Front Page Filter”, no need to code =)

    #2342
    Tristan
    Participant

    Hey this was a pretty quick hack. I had a category called “Ephemeral” that I just wanted to show up in the Ephemera widget, and not in the slider. So I got the ID of the category (7 in my case), visible in the url when you edit it in the categories section of the dashboard. Then I opened up loop-slider.php and added an element to the $args array like this ‘cat’ => -7,. Don’t forget the comma at the end, and don’t include the period! According to the reference page that Daniel linked to the – sign excludes the category in the query. It works like a charm. Here’s the full text of the array declaration for ease of reference:

    $args = array(

    ‘cat’ => -7,
    ‘posts_per_page’ => 4,

    ‘paged’ => $paged,

    ‘ignore_sticky_posts’ => 1,
    );

    Happy hacking.

    #2343
    Kath
    Participant

    I used a plugin as well, called “Frontpage category filter”. I created a new category called ‘Front page’ (pretty inspired eh!), changed the four posts I wanted on my front page slider to that category, unchecked the other categories on the plugin settings page, and ta da! All sorted. Thanks for the inspiration, frX!

    #2344
    alicetragedy
    Participant

    I’ve posted this into another thread, and I think it is relevant to yours too, if you don’t want to be playing around with code and stuff.

    triangular said:
    Great theme, love the slider. I understand that to add an image into the slider it must be added as a featured image. Great!

    However not all posts will have an image, or maybe shouldn\’t be a featured image. Its a big problem that all standard format posts (text only) also add a blank page in the slider, only showing the text overlay. This is odd, and four standard posts in a row show a completely empty slider when loading the page, so its just empty and dull, without the featured images being shown.

    How in the heck can I post a normal, standard text post and keep those out of the slider, so it doesn\’t affect my chosen featured images in the slider?

    I’ve found that the best way for me to do something like that (though it might be tedious for you) was to either set them as “asides” (however they become like pages and are not accessible from the front/home page which is sort of irritating) OR to put them in a specific category.

    Some of my blog posts will have images, but not all (for example this very first one: http://photography.alicetragedy.org/?p=3), so to work around the problem of the featured image, when I post a blog entry it can be kept in “standard” mode (or in “image” if it has an image) but won’t be accessible from the slider – only from the category menu below.

    in order to do this, you must put all of your non-image posts into the same category (I chose to call it “blog” for obvious reasons) and then go from the Dashboard to Appearance > Theme Options; from the dropdown menu next to “Blog Category” pick your non-image category, and it should work.

    I hope it helps!

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

You must be logged in to reply to this topic.