Copernicus
Forum Replies Created
-
Forum: Plugins
In reply to: [Geo Redirect] Geo Redirect Doesn't Seem to Work with CacheUpdate: the caching may not have been the issue; so I’ll mark this “resolved” until I know if the caching was specifically an issue.
Forum: Fixing WordPress
In reply to: Tag links not working (keep displaying same (all) posts)WOW. The search is over! Thank you alchymyth!
That works perfectly.I have to admit, I’m not sure if I would have ever found that solution using my normal methods of reading through the codex. So, thank you very much for sharing your knowledge!
Forum: Fixing WordPress
In reply to: Tag links not working (keep displaying same (all) posts)I had a similar problem and traced it back to my added query before the general loop.
I wanted to display my posts in alphabetical order according to the post titles.
So, I had added
<?php query_posts('orderby=title&order=ASC'); ?>
just before
<?php while ( have_posts() ) : the_post(); ?>This did make the posts display alphabetically, but “broke” the display of posts by tag (showing ALL posts instead of just the tag-related posts).
Once I removed that custom query, the display resulting from using tag links started working again as expected.
I’m now searching out a way to keep the tag links working BUT still have the posts sorted by title (alphabetically).
Hi drperil–
Not sure if this is the same issue, but I had the problem that users that weren’t admin-level couldn’t select and save a sidebar to be associated with a page.
Here’s my solution to that problem — I hope that it helps you as well.I may have partially answered my own question…
It seems that this is an issue with the plugin specifying that users must have the capability to “switch themes” (which is usually reserved for admins) in order for them to set/edit the custom sidebars.
To change this so that other user types can set sidebars, I edited the file “customsidebars.php” (in the “custom-sidebars” plugin folder, of course), in the following manner:
Around line 27 in v0.8.2, (or, perhaps line 53 if your code has double lines), I changed the following:
var $cap_required = 'switch_themes';to
var $cap_required = 'edit_pages';That means that any user with the capability to “edit pages” will be able to set the custom sidebars.
There is probably a more elegant (and longer-term) solution to this, but this seems to be a good quick fix.
Forum: Plugins
In reply to: [Geo Redirect] [Plugin: Geo Redirect] Instructions & Common Redirect TypesThanks so much! This worked perfectly.
Forum: Fixing WordPress
In reply to: Custom Placement of Jetpack's/Sharedaddy's SharingThanks for this Anders.
I had the problem that I only wanted the sharing icons/links on a few pages but didn’t want to have to go through all of the already-existing pages and manually set the option for showing (or not) the Sharedaddy icons on each page.
So, following your instructions, I removed the functionality on the template level and set the pages that I did want to have Sharedaddy to use a custom template.
Worked great.
Cheers, mate.
Thank you jrevillini!
Your solution seems to work very well.
I just changed the line in your pastebin code from:
$plugin = 'wp-super-cache/wp-cache.php';to
$plugin = 'w3-total-cache/w3-total-cache.php';then followed your other instructions and everything seems to be working great WITH W3 Total Cache’s page caching now running!
Cheers!
Well, I may have successfully answered my own question.
Within the file, , there’s a snippet of code listed under the “//browsers” section that determines the browser version:
elseif( strstr($ua, 'firefox/3.5') ) $b[] = $g . ' ff3 ff3_5'; elseif( strstr($ua, 'firefox/3') $b[] = $g . ' ff3'; elseif( strstr($ua, 'firefox/3') $b[] = $g . ' ff4'; elseif( strstr($ua, 'firefox/3') $b[] = $g . ' ff5';To this, I simply added:
elseif( strstr($ua, 'firefox/10') $b[] = $g . ' ff10';at the end of that list. The final view within the code is this:
elseif( strstr($ua, 'firefox/3.5') ) $b[] = $g . ' ff3 ff3_5'; elseif( strstr($ua, 'firefox/3') $b[] = $g . ' ff3'; elseif( strstr($ua, 'firefox/3') $b[] = $g . ' ff4'; elseif( strstr($ua, 'firefox/3') $b[] = $g . ' ff5'; elseif( strstr($ua, 'firefox/10') $b[] = $g . ' ff10';I’ve tested it with Firefox 10 and it seems to work fine.
Hope this helps someone else!
This also seems to be an issue when Awebsome! Browser Selector is combined with W3 Total Cache.
Do you happen to know if the solution above will work with W3 Total Cache?
I know that this is a bit old of a thread, but I had a similar need to be able to link directly to a specific FAQ question/answer combo within a ‘Q and A’ page generated by the shortcode. I came up with the following solution.
Linking to Specific Questions & Answers
Within the file
q-and-a.php,I edited around line 125 FROM
$qa_shortcode .= '<div class="faq-title"><a href="'.get_bloginfo('wpurl').'?qa_faqs='.$postslug.'">'.$title.'</a></div>';TO
$qa_shortcode .= '<a id="'.$postslug.'"></a><div class="faq-title"><a href="'.get_bloginfo('wpurl').'?qa_faqs='.$postslug.'">'.$title.'</a></div>';The primary change being the addition of a named anchor with the code snippet of
<a id="'.$postslug.'"></a>This creates a named anchor just before the “faq-title” div and will give that named anchor an ID of whatever the FAQ question’s slug is.
Forcing Display/Visibility of the Answers
To remove the need to click a question to show/hide its answer, you can use the following CSS. Keep in mind, however,that this applies to ALL answers (so they will all be showing). If you create a more specific class/ID restriction, you could limit that side effect. But, that particular answer will still show all the time — this isn’t a show/hide event based on linking (which would be ideal).
div.faq-answer { display: block !important; }Hope this helps!
Forum: Fixing WordPress
In reply to: How to Truly Customize the WordPress Comment Form?Right, but not the comment-template.php which seems to hold all of the output that many of us would like to modify, including my examples above of
– editing the text and code output for “Your comment is awaiting moderation,” and
– editing the text that reads “says” after the comment authors name (resulting in “Author-name says…” in the comments list).Among other things.
Any way to override those items (and other items in the comments-template.php file) without editing core files?
Forum: Fixing WordPress
In reply to: How to Truly Customize the WordPress Comment Form?Hi there, ChristiNi!
Thanks for the response.
Am I mistaken in believing that the comment-template.php file would not be part of a child-theme? The file comment-template.php is in wp-includes, not within the wp-content or theme directories.More than style changes, I want to modify the coded output. Text like “Your comment is awaiting moderation” seems to be part of the core files and not something that’s easily modified from the theme end.
Or am I mistaken?
(thanks for any & all help!)
mike235 & rpetersnmt: fantastic!
That worked great. Even if it’s not the cleanest fix, it’ll do quite nicely.Thanks to you both!
Thanks, mike235! I had a feeling it might be something like that, but didn’t think to check my Custom Post Type configuration.
I, too, had deactivated the Editor (using the Custom Post Type UI plugin, http://wordpress.org/extend/plugins/custom-post-type-ui/).
While I’m able to get the Tiny MCE interfaces back on the custom fields by ensuring that the Editor is loaded; it defeats the purpose of the custom post type (I want it custom because I DON’T want the standard editor).
From what I’ve found, it seems that plugins now need to call the “wp_preload_dialogs()” separately for instances when the Editor is not being employed within a post type. Details here:
http://dannyvankooten.com/450/tinymce-wysiwyg-editor-in-wordpress-plugin/