Nivo Slider on Magzimus theme – Grab images from pages rather than posts?
-
I am using the Magzimus Theme on this site. I’m trying to get the main page slider to grab images from pages rather than posts. BTW, I was able to get the slider to work with post images.
In the support section for Magzimus, the theme creator says to do this:
“First you need to add the options box to the pages, open includes/admin/boxes.php find line 19 and change the “post” argument for “page”. This will allow you to add only pages to the slider instead of posts, I believe you could also duplicate the line and it might work so you can add both pages and posts but I haven’t tested this.
Next, you need to open includes/API/posts.php and find line 32. Add “any” as the default post type the line should end up looking like this:
function get_posts_by_meta($key, $value, $max = 5, $post_type = ‘any’) {“
I’ve done both of those. The slider check box and url field show up on my pages editor, but when I enter the info nothing shows up on the main page.
Any help would be appreciated! Thanks
- The topic ‘Nivo Slider on Magzimus theme – Grab images from pages rather than posts?’ is closed to new replies.