• Is there a way on the Mymag theme to display only posts that have a featued image applied to them in the featuer slideshow on the homepage other than displaying all posts even posts without a feature image.

    seem my posts are submited by thew public i would like to only dispay items with a feature image in the slide show and items without will be in news feed to the left.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Create a new category called “featured news” or “front page” when publishing a post with image, make sure you check for “”featured news” or “front page” category. Also, select “featured news” or “front page” as your main page slide shows category.

    Example: If you wish to publish a news without image, then publish it just to “news” category and if you have a featured image, publish it to news ass well as “featured category”. I hope you understand ??

    Thread Starter kitcorsa

    (@kitcorsa)

    yes that will work but as mentioned all my news is submitted by the public and some news isn’t checked by me as well it come from the BBC and local newspapers so i dont need to modorate that, and by giving the submitters loads of different catogories to submit to would just be confusing to them… as well they will all want it featured on the front page!

    is there an if statment i can run so its only displays posts with a feature image?

    here is the slider code

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Even if its public, let your user’s select 2 categories, “news-with image” “news without image”. Post published with ” news with image” will be your featured front page slide. Others get published ” news without image. Anyway, that makes me feel messy.

    You are right, you need to grep all “post with image” and show in featured. Sorry, I have not tried that before. Some geek here can help you. ??

    Thread Starter kitcorsa

    (@kitcorsa)

    here the code again

    https://pastebin.com/PeV1aK9C

    Jesús Rosas

    (@wwwjesusrosascom)

    I just saw this post and even though it may be too late, somebody else may find useful to know that it is possible to set whatever you want to display in the homepage (this includes the two slideshows and right/left column).

    However, as far as I know this is only possible through categories and not for individual posts. This means that you have to create a specific category to be either included or excluded in the slideshows you want.

    In this case, if you want to display only posts with an image, as kitcorsa asks in this post, you need to create a category for posts with images (Yes, all posts with images you want to be displayed in the slideshow must have this category). Then you go to the myMag Theme Settings Page (In your Dashboard right menu, under appearance click myMag Options and under the Homepage Settings look for the slideshow you want and enter the category ID number of the category that has all your posts/articles with images.

    Or alternatively, you can also create a category for posts with no images and under the Homepage Settings enter the category ID you want to exclude (which is the category of posts with no images). The Recent News Category ID box is where you edit the posts at the news feeds to the left/right column (mine is at the right).

    How to find the category ID number?

    Under Posts at the left menu of your dashboard is the Categories option. Once there you will find all your categories and click on the one you need to see the category ID. You will find the number in the URL in the address bar of your browser. Or just do it like me, hover on the pointer on the category without clicking and (depending on your browser) you will see at the bottom the link address without opening the website. In this link address is the Category ID.

    Use your own creativity and “Math” to make combinations of featured posts. I personally didn’t like to see the same images in the two slideshows, so I changed the categories to be displayed in both. If you know something different and easier, let me know.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Theme MyMag] Home slide show only display posts with feature image’ is closed to new replies.