Roger
Forum Replies Created
-
Forum: Plugins
In reply to: [Expanding Archives] Custom post types in archiveOk, found it! I put it here for future reference:
In functions.php, replaced
and post_type = 'post'byand (post_type = 'post' or post_type = 'my-post')Thanks again for helping me out!
Forum: Plugins
In reply to: [Expanding Archives] Custom post types in archiveSeriously, thanks for taking the time for this.
Ok, I got it: I need to really clear the cache (best is deactivate / reactivate the plugin).
But even then, the custom posts appear only for the months where there are already regular posts as well.For some reason, when displaying the months those with only custom posts get skipped. I can’t find why, since the function
load_monthly_archivesshould return something even if there are only custom posts when it’s called in the loop.I even tested this by leaving only
'post_type' => 'my-post',: the same months are still shown, but with the mention “no posts found” if there are no custom posts!
Could you point me to which function identifies if there are posts in a given month?Thanks for your help.
Forum: Plugins
In reply to: [Expanding Archives] Custom post types in archiveHi, thanks for the supert quick response!
I did try what you suggest, but it doesn’t seem to work.
Before writing any filters I tried a simple fix in the functionload_monthly_archives, by adding'post_type' => array('my-post', 'post'),to$arc_args = array( 'posts_per_page' => - 1, 'nopaging' => true, 'year' => intval( $year ), 'monthnum' => intval( $month ), 'post_type' => array('my-post', 'post'), );And it doesn’t change anything. I even tried
'post_type' => 'any',but no luck there either… What am I missing ?
Thanks again for your help,
RPIf it helps at all, the popups don’t work either with the Draw Attention image mapping plugin, which is more recent and very well maintained.
Hi, thanks. I posted the review!
I managed to find the solution on my own, that I dug up in one of your publications – as I couldn’t used a fixed size, it’s a variation of the functions.php hook.
Here’s what I did, which works great for all popup sizes including auto:In the custom styles.css, added:
#mapster_wrap_1 { width: auto!important; height: auto!important; } img.mapster_el { width: auto!important; height: auto!important; } canvas.mapster_el { width: auto!important; height: auto!important; }Then in functions.php, added the following hook:
(pum-1234 is the id of the specific popup I wanted to be affected by the code, as I disn’t want it for all of them)/*** Custom Popup maker JavaScript scripts */ add_action( 'wp_footer', 'my_custom_popup_scripts', 500 ); function my_custom_popup_scripts() { ?> <script type="text/javascript"> jQuery('#pum-1234') .on('pumAfterOpen', function () { $(window).trigger('resize'); }); </script><?php }Forum: Plugins
In reply to: [The Events Calendar] Untranslated strings in phpHi,
Yes, the good news is that the original strings are in the latest version’s .po files, and are translated in French!
The bad news is that the translation (I’m speaking only about French here) is wrong: You can’t say “Show event search”, you need to say “Show search of events”.
So the french strings should be:
“Afficher la Recherche d’%s” and “Masquer la Recherche d’%s”, which would give:
“Afficher la Recherche d’Evènements” and “Masquer la Recherche d’Evènements”.I fixed this in my .po file
Thanks for the quick reaction,
RP
Forum: Plugins
In reply to: [The Events Calendar] Untranslated strings in phpHi,
Great, thanks!
I’ll keep on the lookout for the fix in next updates, but until it’s fixed I’ll have to keep my hack 🙁
It’s fortunate that you give the possibility to put the source file safely in my child theme, so it’s not overwritten.Cheers,
RP
Forum: Plugins
In reply to: [MaxSlider] Link to a url without buttonHi,
Thanks for the clarification, this did it!
I managed to make it work for a specific slider AND slide. In case someone else is interested, I replaced the above code by:
.maxslider-000-slide-00 .maxslider-slide-content a { padding: 0; position: absolute; top: 0; left: 0; width: 100%!important; height: 100%!important; opacity: 0; } .maxslider-000-slide-00 .maxslider-slide-content { transform:translateY(0); -webkit-transform:translateY(0); top:0; bottom:0; height:100%; margin:0; } .maxslider-000-slide-00 .maxslider-slide-content-pad h3{ position: absolute; -webkit-transform: translateY(-50%); top: 50%; left: 0; right: 0; }– 000 is the slider id, that you can get from hovering over the slider name in the slider list (like a post)
– 00 Is the slide number, just its order in the slides list (starting a 0)
This way all other slides titles, subtitles and buttons behave normally as per their settings, except for the specific slide where the whole image area becomes the button.
For it to work properly, you need to specify a link for the button, but no text.RP
Forum: Plugins
In reply to: [The Events Calendar] Untranslated strings in phpHi,
I think I didn’t express myself clearly – it’s not the translations that are missing (that’s easy to fix), but it’s the original strings that are not in the po file.
Regards,
RPForum: Plugins
In reply to: [MaxSlider] Link to a url without buttonHi,
Thanks a lot for the super quick reply.
It works, insasmuch it does move the title to the top center – I also found a way to target a specific slider, by replacing
.maxslider-slide-content...with.maxslider-0000-slide-content..., 0000 being the slider id.But it doesn’t link to a url when I click the title. Where should this url be ? Is it supposed to be the button url in the slider settings, or something else ?
Thanks for clarifying!
RP
Ok, I saw the user role feature in the premium version, but I didn’t realize it could be used for this purpose as well.
Unfortunately the site is one I’m doing for free for a nonprofit, so no paying plugins… I’ll see how it goes with your suggestion. It also relies very heavily on conditional widget placement, so it’s a hassle to migrate!Thanks anyway
RPForum: Reviews
In reply to: [Image Photo Gallery Final Tiles Grid] Great pluginHi Diego,
Thanks for the quick response!
Yes, you are absolutely right. So why not give the user the option to have an aligned bottom, in which case you slightly crop the images vertically to achieve this, or else leave it as now with complete images.In my opinion the cropping isn’t such a big deal, as the tiles just show the thumbnails and the user can see the complete images in the light show.
That’s just my take though, you as you see fit but I think it would add a nifty feature to an already great package.RP
Forum: Plugins
In reply to: [The Events Calendar] Strings not translated in latest versionHi Barry,
Sorry for the late response, I had moved on.
I think you are misunderstanding the issue here: We’re not questioning the fact that the plugin must evolve, and therefore new strings will make their appearance, and need updated translations.
What we are both saying is that the new ORIGINAl english language strings, were NOT present in the .po file (or the pot file) when the plugin was updated, hence making any translation impossible and necessitating hard coding of the string or additional code to make it work.
I hope this is clearer, and that the issue has been fixed since…
RP
Forum: Plugins
In reply to: [The Events Calendar] Strings not translated in latest versionHi Olivier,
Thanks, your solution is cleaner than mine (you made the code work instead of just hard-coding the text), but the result will be the same: both will be lost at the next upgrade of The events calendar.
It’s really the development team’s job to fix the bug in a forthcoming release…
Best
RPForum: Plugins
In reply to: [AddToAny Share Buttons] Double placement on The Events CalendarOk, found a workaround for this: I unchecked the “Show at the top of Events” box in the settings, and just inserted this code in the single event’s template file (single.php):
<?php if ( function_exists( 'ADDTOANY_SHARE_SAVE_KIT' ) ) { ADDTOANY_SHARE_SAVE_KIT(); } ?>If it may be useful to someone else…
RP