1. PROMO Subscribe our All Access Pass @ 75% OFF & access all our 16+ premium Divi extensions: Divi Block Pro, Carousel Toolkit, etc.LEARN MORE
Dismiss Notice
NEW Divi.Help Pro Carousel AI Toolkit - Magically turn your Divi design into carousel, simply by using our online toolkit. No plugins needed. Now it works with Divi 5 as well!Try our carousel AI toolkit
BEST Divi Block - A revolutionary drag & drop tool to easily mix & match 960+ premade blocks (Light & Dark) to kick start your Divi site design. Special module designs are included as well. Also newly added AI generator & color. Now it works with Divi 5 as well!
Learn More About Divi BlockFree Version ~ 340+ Free Blocks

Solved Archives shortcodes

Discussion in 'Basic Support Forum' started by Jaime r, Apr 13, 2020.

  1. Jaime r

    Jaime r New Member
    Divi Powerful Child Theme Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Hi there,
    When I'm using the archives shortcodes and breadcrumbs I´d like to see the previouly changes that I did in Projects slug and Project Category slug.I´m using WPML as website is in English and spanish as a second language.
    Link:https://seelanzarote.com/area/north/
    So here, I'd like to see 'Spots' instead of 'Projects' and same thing with 'Project Category' into 'Area'
    (see attached)

    And I see that when I change to spanish version nothing comes up.

    I added this lines in functions.php for that:
    function et_change_project_slug( $args ) {
    $args['slug'] = 'spots';
    return $args;
    }

    add_filter( 'et_project_posttype_rewrite_args', 'et_change_project_slug' );


    add_filter( 'register_taxonomy_args', function($args, $taxonomy, $array_object_type) {
    if ($taxonomy == "project_category") {
    $args['rewrite']['slug']="area";
    }
    return $args;
    }, 10, 3);


    Thank you in advanced
     

    Attached Files:

    1. PRO MEMBER PERKS Divi Ultimate Header Plugin - Add more varieties for your Divi header (12 premade styles) + menu hover effects:Learn More
  2. Divi Powerful

    Divi Powerful Administrator
    Staff Member

    Instead of using the Divi project post type, you should use cpt plugin to create:
    New custom post type: Spots
    And new taxonomy: Areas

    Here's one of the most popular cpt plugin: https://wordpress.org/plugins/custom-post-type-ui/

    And use WPML to translate the name of the cpt.

    =============

    As for the missing archive header for different language, you will need to go to WP Admin > Divi > Divi Library to translate your Archive Header style for different language. See screenshot below:

    upload_2020-4-13_22-9-56.png
     
  3. Jaime r

    Jaime r New Member
    Divi Powerful Child Theme Divi Ultimate Blog Plugin Divi Ultimate Header Plugin Divi Ultimate Footer Plugin

    Thank you, I'm trying this plugin
     
    1. PRO MEMBER PERKS Divi Block Pro - Premade promo bar / notification bar with close button for your Divi site without using any plugins:View Demo