Nikita_Sp
Forum Replies Created
-
Forum: Plugins
In reply to: [ReOrder Posts within Categories] Order posts in non-hierarchical taxonomiesHi!
Seems the right condition to add sort to non-hierarchical is
add_filter(‘reorder_post_within_categories_and_tags’, ‘__return_true’);This is the only way it works for me.
Thanks.- This reply was modified 6 years, 9 months ago by Nikita_Sp.
Forum: Plugins
In reply to: [Custom Permalinks] Two links for page availableHi!
Thanks for your attention to the issue.
I’m sorry, but seems nothing was changed.The links are still the same.
Thanks.The same thing on linkedIN now.
?utm_source=LinkedIn&utm_medium=websitepost
Please, check all the social links.
Thanks.Nice hack, thanks!
Hi, thanks, but seems than it won’t index by search engines, will it?
I mean that if you have more links from FB – that’s better.Also there is problems with other social networks.
For example linked in:
https://rubika.com.ua/sozdanie-kachestvennyih-saytov?utm_source=LinkedIn&utm_medium=1149&utm_campaign=Website-post
Can’t insert there is two “& amp;”‘s
Hello!
Really actual question!
The same thing to me.Waiting for response of plugin’s authors.
Thanks.Forum: Plugins
In reply to: [Custom Permalinks] Default permalink roll back after updating post.Hi @sasiddiqui
1. I’ve done that.
2. I hope you’re right and polylang is already fixed. Anyway the plugins are updated to the current version.If I’ll have some issues I’ll write to you.
Thanks.Forum: Plugins
In reply to: [Custom Permalinks] Two links for page availableHello @sasiddiqui
Yeah, it’s all pages issue. You can check here:
https://rubika.com.ua/redizayn-sayta vs https://rubika.com.ua/uslugi/redizayn-sayta
https://rubika.com.ua/dizayn-sayta vs https://rubika.com.ua/uslugi/dizayn-sayta
https://rubika.com.ua/sozdanie-landing-page vs https://rubika.com.ua/uslugi/sozdanie-landing-pageThe thing is that:
1) it works OK on eng version:
https://rubika.com.ua/en/services/creating-landing-page – redirects to https://rubika.com.ua/en/creating-landing-page2) the page is the third child to page services.
So I’ve got
– Services
— Design
— Website design
— etc…
— Development
— Creating landing page
— etc…I hope it will help.
Thanks.Forum: Plugins
In reply to: [WP-PostRatings] Default image in schemaSo the LOGO image is using when no image is attached to the post.
BUT!
Logo in the Organization data must be there.Forum: Plugins
In reply to: [WP-PostRatings] Default image in schemaHello!
I’ve solved the issue with your filter using:
function ratings_structed_data($string) { if(strpos($string, '<div style="display: none;" itemprop="image" itemscope itemtype="https://schema.org/ImageObject">') === false){ $site_logo = ''; if ( function_exists( 'the_custom_logo' ) ) { $custom_logo_id = get_theme_mod( 'custom_logo' ); if ( $custom_logo_id ) { $custom_logo = wp_get_attachment_image_src( $custom_logo_id, 'full' ); $site_logo = $custom_logo[0]; } } if( empty( $site_logo ) ) { if( has_header_image() ) { $header_image = get_header_image(); if( ! empty( $header_image ) ) { $site_logo = $header_image; } } } $site_logo = apply_filters( 'wp_postratings_site_logo', $site_logo ); $site_logo_info = getimagesize($site_logo); $post_meta = '<div style="display: none;" itemprop="image" itemscope itemtype="https://schema.org/ImageObject">'; $post_meta .= '<meta itemprop="url" content="' . $site_logo . '" />'; $post_meta .= '<meta itemprop="width" content="' . $site_logo_info[0] . '" />'; $post_meta .= '<meta itemprop="height" content="' . $site_logo_info[1] . '" />'; $post_meta .= '</div>'; $position = strpos($string, '<div style="display: none;" itemprop="publisher"'); $new_string = substr($string, 0, $position); $new_string .= $post_meta; $new_string .= substr($string, $position); $string = $new_string; } return $string; } add_filter( 'wp_postratings_google_structured_data', 'ratings_structed_data', 10, 3 );
Forum: Plugins
In reply to: [Polylang] Is Polylang currently compatible with Custom Permalinks?Mine was resolved by finding a bug in Custom Permalinks plugin by myself.
The solution could be useful for you too. Just check it out via the link.
Thanks.- This reply was modified 7 years ago by Nikita_Sp.
Forum: Plugins
In reply to: [Custom Permalinks] Error after upgrade 1.2.7Hey there again!
I’ve got the solution!
Please, provide it to next versions!The bug is here (class-custom-permalinks-frontend.php on line 352):
require_once ABSPATH . '/wp-admin/includes/post.php'; list( $permalink, $post_name ) = get_sample_permalink( $post_id );
First of all, why do you hardcode? Wp-admin to front… It seems not good for me, but maybe I don’t know something, it’s ok.
Anyway this is the reason of the error.But seems I found a solution:
You need to replace your hardcode with:$post = get_post( $post_id ); $post_name = $post->post_name; if($post->post_type == "post"){ $permalink = get_option( 'permalink_structure' ); }else{ // If custom post types permalinks is installed try to get this option $permalink = get_option( $post->post_type.'_structure', false ); if($permalink == false ){ $permalink = get_option( 'permalink_structure' ); } }
Please, reply.
Thanks.Forum: Plugins
In reply to: [Custom Permalinks] Error after upgrade 1.2.7This adds next urls:
https://rubika/project/%portfolio% on custom post type page
and
https://rubika/%postname% on native post page.Forum: Plugins
In reply to: [Custom Permalinks] Error after upgrade 1.2.7