Mei Gwilym
Forum Replies Created
-
Forum: Plugins
In reply to: [Polylang] Language options have disappearedYes! I just removed the space in the function call and it was back to normal.
Thanks for the replies. Merci!
Mei
Forum: Plugins
In reply to: [Polylang] Language options have disappearedSorry, this was all my fault. I had a filter on
pll_get_post_types
and I had added a tab into the function call. As below:add_filter('pll_get_post_types', 'theme_get_post _types');
Mei
Forum: Plugins
In reply to: [Polylang] Language options have disappearedI ran that filter on the site, and var_dumped both values.
$hide = False
$post_types = nullThis was for all values.
Forum: Plugins
In reply to: [Polylang] Language options have disappearedThanks for the quick reply!
All the CPTs are set to public. And this doesn’t explain why Post and Pages also don’t show the language columns.
I’ll take a look through your docs, thanks for the link.
Forum: Plugins
In reply to: [Polylang] Language options have disappearedHere’s a var_dump of the settings from the DB
array (size=14) 'browser' => boolean false 'rewrite' => int 1 'hide_default' => int 1 'force_lang' => int 1 'redirect_lang' => int 0 'media_support' => boolean false 'sync' => array (size=7) 0 => string 'taxonomies' (length=10) 1 => string 'post_meta' (length=9) 2 => string 'post_date' (length=9) 3 => string 'post_format' (length=11) 4 => string '_wp_page_template' (length=17) 5 => string 'menu_order' (length=10) 6 => string '_thumbnail_id' (length=13) 'post_types' => array (size=0) empty 'taxonomies' => array (size=0) empty 'domains' => array (size=0) empty 'version' => string '1.8' (length=3) 'default_lang' => string 'cy' (length=2) 'previous_version' => string '1.7.12' (length=6) 'nav_menus' => 'gfc' => array (size=1) 'primary' => array (size=2) 'cy' => int 2 'en' => int 17
No.
It was not a major problem so I left it in the end.
I had another look now and the location search is broken too. This is probably another part of the problem.
Sorry I can’t be of any help.
Yes, sorry should have mentioned that.
I’ve just installed another site with both plugins and it works fine.
Although I noticed that it’s ticked by default in the broken site and not in the working site.
Is there a setting that I may have disabled somewhere? I’ve trawled through most of the EM settings and locations and maps are enabled.
Thanks for your help on this.
Mei
Forum: Plugins
In reply to: [The Events Calendar] Not saving Location data with WPMLHi Leah,
Thanks for the reply. My mistake I’m afraid, I’m using Events Manager and seem to have stumbled on the wrong forum.
Mei
To answer my own question, here’s what I did to get the metabox showing.
I tested with WP4.0 and the latest versions of both plugins.
Add these lines to your theme functions.php file:
function issuem_pmmpro_compatibility() { add_meta_box('pmpro_page_meta', __('Require Membership', 'pmpro'), 'pmpro_page_meta', 'article', 'side'); } add_action('add_issuem_articles_metaboxes', 'issuem_pmmpro_compatibility');
I saved an article, and it was blocked correctly by PMPro when I tried to read it.
I’ll update this thread if I find more things to be done. If there’s much more it may be worth creating a sister plugin for PMPro.
Turning off display errors only hides the problem.
To fix, add this code on line 235 of file nextgen-gallery/products/photocrati_nextgen/modules/attach_to_post/mixin.attach_to_post_display_tab.php (for version 2.0.40).
if(is_null($model)) $model = new \stdClass();
which should be before
$model->settings = $settings;
.Mei
Forum: Plugins
In reply to: Altering the post counterI would do that, but it’s an archive.php page, and the category is taken from the url.
The code is just a standard loop, set to show 4 posts in admin/options.
Thanks for your help,
Mei
Forum: Plugins
In reply to: PostsInCategory plugin req. – or new way of listing postsThis is one way, but you need to input the category number every time. It will give an unordered list of the posts from the requested cat.
I’m in the process of writing this to a plugin. I’ll try and let you know when.
Mei
<ul> <?php $posts = get_posts('category=XX'); ?> <?php if( $posts ) : ?> <?php foreach( $posts as $post ) : setup_postdata( $post ); ?> <li><a href="<?php the_permalink() ?>" title="Link to <?php the_title(); ?>"><?php the_title(); ?></a></li> <?php endforeach; ?> <?php endif; ?> </ul>
Forum: Plugins
In reply to: Gengo Template TagsThanks for your help.
After some experimenting I’ve realised that Gengo automatically adjusts wp_list_categories() for different languages, so no need for those original functions.
Forum: Plugins
In reply to: Gengo Template TagsSorry. This is for the Gengo mutilingual plugin.
https://www.ads-software.com/extend/plugins/gengo/
Mei