Category Primary Term is not showing correctly

#35082
Viewing 14 replies - 1 through 14 (of 14 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Please head over to Rank Math > Titles & Meta > Select your post type and then ensure that listing categories is set as the primary taxonomy.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    https://prnt.sc/rbed2u

    i have selected listing categories is primary term

    Hello,

    Thank you for getting back to us.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    https://www.loom.com/share/ae7fb58e5be44883b5e78f1628933e16
    watch the video check one more thing along with category

    update the new version yesterday, when click on quick edit and update anything without doing something or nothing. the rank math status gone..

    so currently i am rolling back… you can check

    Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    This issue is likely caused by your listing plugin. Please get in touch with the plugin team and see if they can solve the issue. The error below is shown with only the plugin enabled:
    https://snipboard.io/WY7raB.jpg

    The SEO Details also reappear after Editing and Updating each specific posts.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    https://prnt.sc/rds67t

    developer replied

    Hi there,

    Thanks for the follow up.

    The variable %listingCat% is custom built on your theme and it is relying on the following function:
    $category = wilcityChildGetPrimaryTerm( $post->ID, 'listing_cat' );

    This function seems to be the one that is not returning the expected value.

    Please consult the developer about this.

    function returning the expected value..
    only hapeening wrong value when i import any bulk listing through wp all import….

    but again when I edit any listing and update it reflects expected value..

    thnx

    HI Suvidha,

    Thanks for the reply.

    I am glad that you have a workaround for this problem.

    Please let me know if we can provide additional help in this.

    Thank you.

    need help, i may not be able to edit each and every listing as i have uploaded bulk..

    planing to upload 500 listings , just tell me how i can edit each listing.

    HI Suvidha,

    Thanks for the patience.

    I am unable to make changes to your functions.php file. Could you please make the following change on your theme’s functions.php file from line 303 and let me know if the right primary term will be loaded without the need to update the post:

    function RMPrimaryCategoryToListingCallback(){
        $aDirectoryTypes = \WilokeListingTools\Framework\Helpers\GetSettings::getAllDirectoryTypes(true);
        if ( !is_singular($aDirectoryTypes) ){
           return '';
        }
        global $post;
        //$category = wilcityChildGetPrimaryTerm( $post->ID, 'listing_cat' );
        //if ( !empty($category) ){
            //return $category->name;
        //}
        $main_tax = RankMath\Helper::get_settings( 'titles.pt_{$post->post_type}_primary_taxonomy' );
    		if ( $main_tax ) {
    			$term =  get_the_terms( $post->ID, $main_tax );
    			return $term[0]->name;
    		}
    	
        return '';
    }

    We are looking forward to helping you. Thank you.

    https://www.loom.com/share/09a54bf16f88495c8528e71743123764

    done but not working…
    so now going to remove your give code and will use old code..

    Hello,

    Thank you for contacting Rank Math today.

    Unfortunately we may not be able to help further since the issue seems to affect the grabbing of values from your listing plugin. I can suggest that you seek additional help from their end.

    Looking forward to helping you. Thank you.

    ​​​​​​

Viewing 14 replies - 1 through 14 (of 14 total)

You must be logged in to reply to this ticket.