Chip Bennett
Forum Replies Created
-
Forum: Themes and Templates
In reply to: Exclude sticky posts at the topFollow-up: please do not use
query_posts(). Filter the query viapre_get_postsinstead. For example (this goes infunctions.php):function breatheout_filter_pre_get_posts( $query ) { if ( $query->is_main_query ) { $query->set( 'ignore_sticky_posts', '1' ); } } add_action( 'pre_get_posts', 'breatheout_filter_pre_get_posts' );Then, remove any references to
query_posts()in your template files.Using this method will avoid stomping on the main query, and will preserve proper loop pagination.
Forum: Reviews
In reply to: [Oenology] visually clean themeJust to follow-up: based on the resolution of the linked support thread, it appears the header issues were related to a specific server configuration, and not Theme-related.
If anyone has any issues with using the custom headers feature, or any other Theme feature, please let me know by posting a support topic, and I’ll be happy to help resolve them.
Forum: Reviews
In reply to: [Oenology] Terrible!What site are you referring to?
How does Oenology make the site “visually terrible”, “confusing”, or “unclear”? I would be more than happy to address any issues.
Forum: Plugins
In reply to: [cbnet Twitter Widget] Search QueryCan I change and test this somewhere in the codes of the widget?
That’s the thing: the Widget is just a wrapper for a Twitter-provided script. The Widget just defines parameters that get passed, and the parameters are limited to the options exposed in the Widget. Beyond that, it’s a “black box” from the Widget’s end.
I don’t get it, why the string I wish to use is not working as expected…
Unfortunately, that would be a question for Twitter.
Forum: Plugins
In reply to: [cbnet Twitter Widget] Search QueryThe Plugin doesn’t control the script; rather, it just wraps the Twitter-provided script into a WordPress Widget.
As far as I know, the search query expects a simple search string, rather than complex Boolean search criteria. Try just “ivan_OGP” or one of your other terms?
As for how the Tweets load: that’s entirely controlled by the API call provided by Twitter. I’m not even sure they really support the underlying script itself, with all of their API changes. (I guess I’ll find out in a couple weeks!)
Forum: Plugins
In reply to: [Bitly's Wordpress Plugin] Shortlink in WP-Admin Bar is not workingCan you provide more information? What are the differing links? What other Plugins do you have activated?
Forum: Themes and Templates
In reply to: Trying to have some pages omitted from sidebarI’ve been having a hard time finding a good tutorial to convert my current menu coding into a dynamic sidebar. Any recommendations?
I can point you to exactly what I use in my own Theme, as it should be analogous:
https://github.com/chipbennett/oenology/blob/master/sidebar-navigation.phpRefer to the inline documentation.
For the styling, refer to style.css:
https://github.com/chipbennett/oenology/blob/master/style.cssThat’s a different approach, that doesn’t use a menu widget. It simply styles a custom nav menu, or a pages list.
If you want to go the dynamic sidebar route, that’s as easy as implementing a dynamic sidebar. The CSS styling would remain the same as with the former method.
Forum: Plugins
In reply to: [cbnet Multi Author Comment Notification] Modify for postsNot feasibly, no.
The way this Plugin works is simply to filter the default WordPress behavior when sending notification emails. By default, WordPress only sends notification for moderated comments and for new comments.
The DoNotTrack Plugin should still be an effective way to block QuantCast, regardless of means of injection.
Forum: Plugins
In reply to: [cbnet Multi Author Comment Notification] no notifications sentSince the clarification you gave is not in the provided readme, your FAQ nor mentioned in the WordPress.org installation instructions, it was not understood.
I’ll be sure to add that to the readme. Thanks for the suggestion!
Forum: Plugins
In reply to: [cbnet Multi Author Comment Notification] no notifications sent@james.holt:
The general posting etiquette in the WPORG support forums is for all users to post separate topics, even for potentially related issues.
If you need further clarification beyond this post, please do post a new topic, and I’ll help you there.
In your case, the issue is this:
unchecked:
E-mail me whenever:
[ ] Anyone posts a comment
[ ] A comment is held for moderationYou’ve told WordPress not to send notification emails. This Plugin simply extends what WordPress does when it sends those emails. So, if you’ve told WordPress not to send notification emails, then this Plugin likewise won’t be invoked.
So, simply re-enable/check the above options, and everything should work fine.
Forum: Themes and Templates
In reply to: How to call options from theme options to display in theme.The code you included produces this
bool(false)That means that there is no such option
'options_framework_theme'in the database.Is that the actual name of your Theme options? If not, what is the actual name? If so, have your saved your Theme options?
Forum: Themes and Templates
In reply to: Conflicts in Testing WordPress ThemesHTML/CSS validation is not strictly enforced, and has not been for some time. HTML validation is too ethereal, and not nearly important enough, to warrant strict enforcement.
HTML/CSS validation is only enforced so far as: don’t break anything with your markup, such as with improperly nested tags/unclosed containers/etc.
Forum: Themes and Templates
In reply to: How to call options from theme options to display in theme.What does that code give you?
If not what you expect, then what does the following produce:
$options = get_option( 'options_framework_theme' ); var_dump( $options );Forum: Themes and Templates
In reply to: Trying to have some pages omitted from sidebarChristine’s approach is correct. You should convert that content to a
dynamic_sidebar(), and then put a Menu Widget into that dynamic sidebar. Then, you can assign any custom menu to that location.The benefit of that approach is that it doesn’t impact your layout/style at all. You just need to ensure that the Pages list output by the Menu widget is styled the same as the current output (by default, it should at least be pretty close).