warnerta
Forum Replies Created
-
Hi Anand. I have figured out what happened. This plugin conflicts with WPBeginner’s plugin of the same type, which I had used in the past.
When I installed your plugin and added my code, your plugin appended a piece of code that I had installed previously in my header with WPBeginner’s plugin, and then removed. I did not recognize the code because it wasn’t mine – it was third-party code that I put in years ago for some purpose I don’t even remember. It was not in any way security-related. As I said the code set a one-second timer and after that ran down scrolled the screen down 100 pixels.
This code by the way did not appear in the box where I entered my new code in your plugin. But it appeared in my header. Your plugin must have pulled it out of my wP database or somewhere like that. My theory is that your plugin apparently works so similarly to WPBeginner’s equivalent plugin that your plugin mixes up its own entries with old, no longer used WPBeginner entries still hanging around in the WP database.
I’m amending my review accordingly.
Just updated to 3.3.8 and can confirm this conflict is now fixed in the regular release. Thanks!
Forum: Plugins
In reply to: [Smart Slider 3] Mobile swipe not workingHi Gabor,
I see what you mean about the conflict between swiping videos and playing/pausing them. I’ve used the approach you suggested, with 4 heading layers covering the tops and sides that can be swiped, leaving a central area where the video can be started/paused. It works very well.
Many thanks, you’ve been very quick and helpful.
Thanks, Gabor, that fixed it! Very quick!
So I assume this fix will also be in the next update release?
PS I should have mentioned, I am using SiteOrigin page builder. The slider is put on the page as a widget in a Pagebuilder row.
Forum: Plugins
In reply to: [Yada Wiki] Wiki-style direct page landing from search function?Hi again. I have tested out the alternative method I referred to and it works well. I think it’s better practice to use WordPress’ built-in get_page_by_title function than to code your own search loop. Also make for more compact code.
This is revised and improved from the version I linked to, which starts off with the right idea but makes some mistakes. For example it’s very important to test for ‘publish’ status before redirecting, or else you could allow redirects to private or trash content.
Note that the test for an exact match is not case sensitive.
Also note that this function is hard-coded to redirect only when search terms exactly match the titles of posts of a custom post type called ‘wiki’. If you want to redirect to regular posts, pages or posts of another custom post type called for example ‘whatever’, replace ‘wiki’ as the third parameter of get_page_by_title() with ‘post’ or ‘page’ or ‘whatever’. To redirect to exact matches of multiple types of posts and/or pages, duplicate the core section of the code – everything inside the curly brackets of if (is_search()).
Cheers and hope this is also useful to somebody besides me.
add_action ( 'template_redirect', 'exact_match_redirect'); function exact_match_redirect() { global $wp_query; if (is_search()) { $matched_wiki_post = get_page_by_title ( get_search_query(), 'OBJECT', 'wiki' ); if ( !empty ($matched_wiki_post) ) { if ( $matched_wiki_post->post_status == 'publish' ) { wp_redirect( get_permalink ( $matched_wiki_post->ID ) ); exit(); } } } }Okay, I’ve tested this out enough that I’m certain this is a Debug This reporting error, which affects global array variables. The contents of the global array variables are correct and are not being stomped on. It’s Debug This’s reporting of the contents of global array variables’ contents that’s wrong.
Forum: Plugins
In reply to: [Yada Wiki] Wiki-style direct page landing from search function?Thank you, that was very helpful of you. In a nutshell the answer to my question is: yes, Wiki-style search redirects to exact term-to-page matches can be done in WordPress, and there are multiple ways of doing it. But as of now, no ready-made plugin. So yes, mark this resolved. I just posted here because I figured you or your users might know more than I could find by searching the web.
If and when I get something clean and working I’ll report back. I’m looking at another method that uses WP’s get_page_by_title() function. It’s explained here: https://trepmal.com/2011/04/21/redirect-when-search-query-is-an-exact-title-match/
Best regards.
Forum: Plugins
In reply to: [Beautiful taxonomy filters] No selection for "Activate for these post types"I had a similar problem because I didn’t understand the plugin only works with custom post types. You can’t use it with the standard Posts that that come stock with WordPress.
I found the answer in the FAQs: the plugin only works with custom post types.
It would save people time if that was made clear on the plugin’s front page.
In my case it’s no big deal to switch to a custom post type, so I’ve done that and got it working.
Forum: Reviews
In reply to: [Wiki Page Links] Needed a slight mod to work for postsPS: Oops. This site also automatically converts double-bracketed text into links. So my post may not be readable. I meant:
This seems to still work on WP 4.2.4. Double-bracketed text links to a such-titled page and using “|” works to display text different from the link, just like Wikipedia markup.
However the original description of the plugin is I think wrong when it says it allows such type links to “posts and pages.” As coded, it looks only for Pages, not for Posts.
I modified the code to look instead only for Posts, not for Pages. I will be using only Posts for these types of links, so that’s good for me. If you need to use double-bracketed links that will link to any Page or Post with such title, you would need to do some more extensive re-coding, I think.