Community Forums › Forums › Archived Forums › Design Tips and Tricks › Multiple Posts in Featured Tabs widget
- This topic has 9 replies, 3 voices, and was last updated 11 years, 10 months ago by [email protected].
-
AuthorPosts
-
January 28, 2013 at 11:13 am #15584jamiebrewerMember
I'm using the Featured Tabs widget with the News child theme. Within the wp-content/themes/news/lib/widgets/tabs-widget.php file I updated the following code:
FROM THIS
// Custom loop
$tabbed_posts = new WP_Query(array('cat' => $cat, 'posts_per_page' => 1, 'orderby' => 'date', 'order' => 'DESC'));TO THIS
// Custom loop
$tabbed_posts = new WP_Query(array('cat' => $cat, 'posts_per_page' => 3, 'orderby' => 'date', 'order' => 'DESC'));This was working at one point but now it's not displaying the second two posts in the tab. It is however generating the html code for it.
From what I can tell within the tabs ul.ui-tabs-nav the is not receiving the inline style="display: block;"
Any ideas how I can get this to work? Like I said it was working and then quit.Thanks!
January 28, 2013 at 1:55 pm #15639SoZoMemberPlease include a link to your site with all questions so that people can see what is going on.
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
January 28, 2013 at 2:11 pm #15658jamiebrewerMemberhere you go… thanks man!
<a href="http://gardnernews.com/" title="Gardner News">
January 28, 2013 at 2:36 pm #15680SoZoMemberWhat has been changed since it was working? Update WP? Install other plugins?
Looks like the script is setting it to display: none;
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
January 28, 2013 at 2:39 pm #15683jamiebrewerMemberYeah that's what I saw too.
I think the wp update broke it.
Support said: More than likely it relates to WordPress updates of jQuery and jQuery tabs. The widget uses the WordPress included libraries.
Just looking for a fix. Maybe there's not one:/
January 28, 2013 at 2:41 pm #15685SoZoMemberNot without tweaking the script and I don't know off hand specifically what you would need to change. Haven't looked at what all was changed with jQuery 1.9 yet. Sorry.
John “Nicolas Flamel” Wright | SoZo’s design| John Wright Photography
January 28, 2013 at 6:55 pm #15827[email protected]MemberSame problem here - just realized the 3.5 update broke 3 of my sites this way! If anyone finds a solution, please let me know!
Matt
January 28, 2013 at 7:00 pm #15832[email protected]MemberOne other thing that has broken with that, in my Stylesheet had these lines that made the current tab selected display as the hover cover, like a a:current in a nav bar. The hover still works correctly, but not the selected
#home-top .ui-tabs ul.ui-tabs-nav li a:hover, #home-top .ui-tabs ul.ui-tabs-nav li.ui-tabs-selected a { background-color: #cae5f0; color: #fff; }
January 28, 2013 at 8:34 pm #15860[email protected]MemberNote - the error wherein the selected tab does not take on the new color is a problem on the unedited plugin - it's happening on the NEWS Child Theme demo page as well. Seems like the plugin itself will need an update to fix that regardless of our multiple posts hacks.
January 28, 2013 at 9:05 pm #15867[email protected]MemberFOUND A STOPGAP SOLUTION:
Using this code for a new plugin and deactivating the main Genesis Tabs plugin (but not deleting): https://gist.github.com/4455461
Then delete the current widget that wasn't working, drop in a new one, and there is a field for "Number of posts per cat?"
I had to re-tweak some CSS stuff, but it's working.
The selected-category is still not staying as the hover color though - this may be a deeper issue in the plugin.
Matt
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.