yliharma
Forum Replies Created
-
Thanks a lot ??
Hi @wpsmort,
you’re right, it’s valid HTML but various SEO experts state that using single quotes is a problem with Google and so have asked us to fix those prev/next links.
Personally I haven’t found evidence of this claim, but for the sake of consistency (e.g. the canonical link you provide for the page has double quotes…) would you consider changing that bit of code?
I’ve looked at the code and it’s a matter of minutes…Thanks for the answer!
Forum: Plugins
In reply to: [Redirection] URL monitoring breaks with Custom Permalinks pluginHi,
I think I have a similar problem.
I’m using Custom Post Type Permalink plugin in order to have a custom permalink/%year%/%monthnum%/%postname%.html
for the posts created with WP Ultimate Recipe Premium which have a custom post type “recipe”.
When I change the date of the normal posts everything works fine, but when I change the date of the recipes the redirection is not registered.I’m wondering if this is related to the custom permalink or maybe the URL monitoring works only for normal posts.
EDIT: It doesn’t work for custom post types. I’m going to open a new thread.https://it.www.ads-software.com/plugins/custom-post-type-permalinks/
Solved, it was the theme, thank you!
I’ve been trying to solve this all day but without luck…guess I’ll have to deactivate the plugin and do manually as suggested here:
https://www.ads-software.com/support/topic/insert-category-of-taxonomy-between-custom-post-type-and-post
or here:
https://wordpress.stackexchange.com/questions/108642/permalinks-custom-post-type-custom-taxonomy-post
Same approach and it works.Forum: Plugins
In reply to: [Custom Post Type Permalinks] get 404Same issue…it appears that this plugin doesn’t work well with custom taxonomies of custom post types ??
Forum: Plugins
In reply to: [Edit Author Slug] Broken paginationHi Brandon!
I can’t provide a real link because it’s still in development, but I modified the author slug to something else and it worked…that’s when I started suspecting of something fishy in the htaccess file and I was right!
There is a very broad rewrite rule that redirects everything except the first author page…now I only have to figure out why it’s there ??
Thank you for your help!Forum: Plugins
In reply to: [Edit Author Slug] Broken paginationHi Brandon!
I set the author slug to “utenti“, all the options are unchecked.
WordPress 4.5.2 with the following active plugins:+-------------------------------------+----------+--------+---------+ | name | status | update | version | +-------------------------------------+----------+--------+---------+ | advanced-custom-fields | active | none | 4.4.7 | | advanced-lazy-load | active | none | 1.6.0 | | ajax-thumbnail-rebuild | active | none | 1.12 | | all-in-one-seo-pack | active | none | 2.3.4.2 | | bitly-shorten | active | none | 0.1 | | custom-post-type-permalinks | active | none | 1.5.2 | | disable-comments | active | none | 1.5 | | easy-watermark | active | none | 0.6.0 | | edit-author-slug | active | none | 1.2.1 | | multiple-post-thumbnails | active | none | 1.6.6 | | regenerate-thumbnails | active | none | 2.2.6 | | remove-category-url | active | none | 1.1 | | restrict-categories | active | none | 2.6.3 | | thumbnail-upscale | active | none | 1.1 | | user-role-editor | active | none | 4.25.2 | | user-switching | active | none | 1.0.9 | | wordpress-importer | active | none | 0.6.1 | | wp-admin-no-show | active | none | 1.6.3 | | wp-crontrol | active | none | 1.3 | | wp-user-avatar | active | none | 2.0.7 | +-------------------------------------+----------+--------+---------+
I tried deactivating custom-post-type-permalinks, remove-category-url and user-role-editor (saving the permalinks after every deactivation) but nothing changed. Only if I deactivate edit-author-slug the pagination works correctly.
Forum: Plugins
In reply to: [BJ Lazy Load] Plugin breaks media-upload.php pageI looked around the code: the problem is that
BJLL->init
is called twice.
Some people have found out that the double call is caused by a 404 call to some url, but this is not my case (I checked both the browser inspector and the web server logs).Any ideas?
Forum: Plugins
In reply to: [WP Tiles] Plugin breaks all javascript in post edit page in WP 4.2.2Hi Mike!
Version 1.1.1 works, although we had to choose another plugin in the meantime…Thank you!
Forum: Plugins
In reply to: [Event Calendar] Remove "add events" link from front endGo to the plugin “options” page, deselect the third checkbox and save ??
Forum: Plugins
In reply to: [WP Tiles] Plugin breaks all javascript in post edit page in WP 4.2.2More than 7000 csdaavid…
Forum: Fixing WordPress
In reply to: the_post_thumbnail getting wrong base urlSame issue…
Forum: Plugins
In reply to: [Restrict Categories] Default category is changedSorry I made a mistake, here is the correct version:
add_action('pre_get_posts', 'restrict_categories_fix', 20); function restrict_categories_fix($query) { // fix bug in Restrict Categories plugin which changes default selected category in post admin list global $post_type, $pagenow; if($pagenow == 'edit.php' && $post_type == 'post') { $cat_list_array = $query->get('category__in'); if (count($cat_list_array) && !in_array('0', $cat_list_array)) { $cat_list_array = array_merge(array('0'), $cat_list_array); $query->set( 'category__in', $cat_list_array ); } } }
Forum: Plugins
In reply to: [Restrict Categories] Default category is changedThis plugin seems abandoned…therefore I modified the line 548 in restrict-cateories.php which caused the bug:
Original code in function “posts_query”:
// Build an array for the categories $cat_list_array = explode( ',', $this->cat_list );
Modified code:
// Build an array for the categories, including default option "0" $cat_list_array = array_merge(array('0'), explode( ',', $this->cat_list ));
If you don’t want to modify the plugin source then you can add this action in your theme functions:
add_action('pre_get_posts', 'restrict_categories_fix', 20); function restrict_categories_fix($query) { // fix bug in Restrict Categories plugin which changes default selected category in post admin list global $post_type, $pagenow; if($pagenow == 'edit.php' && $post_type == 'post') { $cat_list_array = $query->get('category__in'); if (!in_array('0', $cat_list_array)) { $cat_list_array = array_merge(array('0'), $cat_list_array); $query->set( 'category__in', $cat_list_array ); } } }