Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter htsacademy

    (@htsacademy)

    Wordpress
    ——————————————-

    Home Url: https://www.hts-academy.com
    Site Url: https://www.hts-academy.com
    Version: 4.9.5
    Debug Mode: No
    Locale: ar
    Multisite: No
    Page For Posts: ??????? (#44)
    Page On Front: ???????? (#39)
    Permalink Structure: /%postname%/
    Show On Front: page
    Wp Cron: Yes

    Settings
    ——————————————-

    Version: 3.17.1
    Db Version: 3.17.1
    Course Catalog: ??????? (#42)
    Course Catalog Per Page: 9
    Course Catalog Sorting: menu_order,ASC
    Membership Catalog: ???? ???????? (#32)
    Membership Catalog Per Page: 9
    Membership Catalog Sorting: menu_order
    Site Membership: Not Set
    Student Dashboard: ???? ???? ?????? (#34)
    Courses Endpoint: my-courses
    Edit Endpoint: edit-account
    Lost Password Endpoint: lost-password
    Vouchers Endpoint: redeem-voucher
    Autogenerate Username: yes
    Password Strength Meter: yes
    Minimum Password Strength: strong
    Terms Required: no
    Terms Page: Not Set
    Checkout Names: required
    Checkout Address: required
    Checkout Phone: optional
    Checkout Email Confirmation: yes
    Open Registration: no
    Registration Names: required
    Registration Address: optional
    Registration Phone: hidden
    Registration Voucher: optional
    Registration Email Confirmation: no
    Account Names: required
    Account Address: required
    Account Phone: optional
    Account Email Confirmation: yes
    Checkout Page: ???? ?????? (#33)
    Confirmation Endpoint: confirm-payment
    Force Ssl Checkout: no
    Country: EG
    Currency: EGP
    Currency Position: left
    Thousand Separator: ,
    Decimal Separator: .
    Decimals: 2
    Trim Zero Decimals: no
    Recurring Payments: yes
    Email From Address: [email protected]
    Email From Name: HTS ACADEMY LLC
    Email Footer Text:
    Email Header Image: 7
    Cert Bg Width: 800
    Cert Bg Height: 616
    Cert Legacy Compat: no

    Gateways
    ——————————————-

    Manual: Enabled
    Manual Logging:
    Manual Order: 1

    Server
    ——————————————-

    Mysql Version: 10.1.31
    Php Curl: Yes
    Php Default Timezone: UTC
    Php Fsockopen: Yes
    Php Max Input Vars: 1000
    Php Max Upload Size: 32 MB
    Php Memory Limit: 128M
    Php Post Max Size: 32M
    Php Soap: Yes
    Php Suhosin: Yes
    Php Time Limt: 30
    Php Version: 5.6.35
    Software: Apache
    Wp Memory Limit: 40M

    Browser
    ——————————————-

    HTTP USER AGENT: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36

    Theme
    ——————————————-

    Name: Astra
    Version: 1.2.7.2
    Themeuri: https://wpastra.com/
    Authoruri: https://wpastra.com/about/
    Template:
    Child Theme: No
    Llms Support: No

    Plugins
    ——————————————-

    Astra Starter Sites: 1.2.2
    BuddyPress: 2.9.4
    Coming Soon Page & Maintenance Mode by SeedProd: 5.0.19
    Contact Form 7: 5.0.1
    Easy Digital Downloads: 2.9
    Elementor: 2.0.3
    LifterLMS: 3.17.1
    WP Fastest Cache: 0.8.7.8

    Integrations
    ——————————————-

    BbPress: No
    BuddyPress: Yes

    Template Overrides
    ——————————————-

    The permalink structure I’m seeing on your live site currently is not the permalink structure reported by your system report. Perhaps you’ve changed it (accidentally?) and that’s why the URL you’re expecting to find your courses at isn’t working.

    Try changing your structure back to the default /%postname%/ and then save permalink settings.

    After that you should be able to visit your course at the translated slug!

    Thread Starter htsacademy

    (@htsacademy)

    @thomasplevy.. Hello
    I had to change the permaliks to plain so that the courses are accessible.. This is the only case that’s possible.. If I use any other style it will result in the translation of the slug of the course page only!

    • This reply was modified 6 years, 12 months ago by htsacademy.
    Thread Starter htsacademy

    (@htsacademy)

    Hello All,

    I found a fix for this issue … a plugin called :

    Simple Post Type Permalinks

    By Toro_Unit

    Tkx…

    HJ

    Thread Starter htsacademy

    (@htsacademy)

    Hello All,

    I found a fix for this issue … a plugin called :

    Simple Post Type Permalinks

    By Toro_Unit

    Tkx…

    HJ

    There is a way to work this out without using another plugin (in case anyone else is searching for a similar solution).

    The first post by @thomasplevy on this thread and his following code on github helped me work this out on an Arabic install of WordPress that uses LifterLMS.

    I am not an expert at PHP, but I think what this does is just forces LifterLMS to use ‘course’ and ‘lesson’ as slugs regardless of the default website language in the settings of your install. So it could work for any language.

    You can add the following code to your child theme’s functions.php, site specific plugin, or LifterLMS customizations plugin:

     // Replace Arabic slug translation for 'course'
    
     function my_llms_course_reg( $args ) {
         $args['rewrite']['slug'] = _x( 'course', 'slug', 'my-text-domain' );
         return $args;
     }
     add_filter( 'lifterlms_register_post_type_course', 'my_llms_course_reg' );
    
     // Replace Arabic slug translation for 'lesson'
    
     function my_llms_lesson_reg( $args ) {
         $args['rewrite']['slug'] = _x( 'lesson', 'slug', 'my-text-domain' );
         return $args;
     }
     add_filter( 'lifterlms_register_post_type_lesson', 'my_llms_lesson_reg' );
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Slug translated’ is closed to new replies.