I’d suggest you use a translation plugins. one simple and free such as PolyLang would make that much more easy, and you’d be able to use / create different template pages for each language. here is a link to get started:
https://www.wordpress.org/plugins/polylang/
Related Posts:
- Update Custom Field on Imported Post Creation
- Insert post without actions/hooks
- Import 10,000 Users into WordPress WITH a specific ID for each user
- phpMyAdmin displays error when importing database
- How can I get the total number of installed importers?
- How to set the WordPress logo programmatically with PHP
- WordPress import media error
- Include style.css in the Child Theme with PHP
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- WordPress: Export/Import Yoast meta title & description to custom taxonomy
- Create “blank” admin page without having admin-bar/admin-menu for faster load
- Import Instagram post as WordPress post
- Importing demo data in Multisite
- WXR XML import is stripping php tags that I need to keep
- Getting invalid user ID error when creating a new user with wp_insert_user
- Creating posts with php-script + csv
- Running a long script in PHP
- Sending the reset password link programatically
- Display all values of custom a field created with ACF on a page
- How do I directly access a PHP file located in my themes folder?
- wpdb::prepare was called incorrectly
- Only show div on homepage/blog index in wordpress/php
- WordPress the_content() return only one image from a specific category
- count number of user comments with a specific comment meta value
- Display all posts in current category
- file_exists() acting weird
- Is it possible to use the featured image of a page as a css background without inlining?
- PHP syntax error when using wpdb update?
- Select dropdown not showing selected value php
- Woocommerce – How to get products which have a sale between 20% to 40%? [closed]
- Warning: array_pop() expects parameter 1 to be array, boolean given
- How to migrate the posts from an old custom legacy blog to a new WordPress website?
- items_wrap not working
- Shortcode API: How to get name that matched shortcode RegEx?
- Using shipped version of jquery
- Run a filter when a walker runs
- Can’t search posts using WP_QUERY inside AJAX Function
- How do I Add HTML to the_excerpt() & the_content() Output?
- Display fields as values in array from external SQL DB
- User’s total comment count excluding comments on their own posts
- Is there a way to programmatically create multiple pages utilizing the same template but different content from a json file?
- Populate dropdown with Child Pages based on Parent Page chosen
- How can I remove a function that has been added to wordpress with add_filter?
- do search in two site and show the result in first site
- What’s the uses of wp_cache_set() or wp_cache_add()?
- How to get post’s current parent term ID?
- Adding Taxonomy Image to taxonomy loop [closed]
- Use of wp_insert_post and parameters
- WordPress theme options error
- How would an if statement surrounding a custom field with two variables (holding values) look like?
- get_the_title() gets printed out twice
- Moving code from theme header to functions.php
- What does this mean in wordpress? Easy question
- How to get private property in parent class into extended class?
- Woocommerce Email attachments not working – file not being attached
- Best way to use a large array in function
- AJAX button action in foreach
- Add Codepen animation as Preloader to WordPress
- Setting user nickname and displayname to shortened email
- Error Uncaught ArgumentCountError i cant find it
- WordPress wp-admin redirect and exception
- Use $wpdb or other PHP script method to find/replace in WP database
- Simple WordPress endpoint route doesn’t work
- Validate and Sanitize WP REST API Request using WP JSON Schema?
- How do I create a function that modifies a message in the wp-login.php file?
- export a mysql table to csv with column headers
- Reusable code that I can store in the function.php and apply to other templates as need. Dry Code
- Why when I create a new post I found 2 record related to this post into the posts database table?
- How can I tell which of my pages are single-view pages?
- Trying to display terms from custom taxonomy within function
- WP_Query for woocommerce products with a pattern as a post_title
- What’s wrong in my PHP code? I’m using WordPress Astra Theme and I can’t insert data into my SQL
- Displaying a List of Changes / Updates on the Website Publicly
- Get WooCommerce products with similar SKU
- 404 on old link after changing post url
- Dropdown category field inside repeatable metabox
- How to add Text before my Custom Term and hide it when empty
- how to fix Warning: A non-numeric value encountered in this specefic line of code
- Responsive loop with 3 columns inside row then 2 columns
- How To Get HTML Eelement From Another Page
- Cron job -many duplicate posts
- Annoying/confusing WordPress memory limit exhausted
- Unexpected behavior when trying to manually install WordPress on macOS Sierra
- Allowing HTML elements in title widgets spacing problem
- how to call other plugins once custom post has been inserted
- Force ‘permanent’ post cache of shortcode results
- How to fix UpdraftPlus’s memory issue?
- PHP tag in post content makes wordpress go crazy
- How can I turn a url with get method as a clean url with segment as the get method?
- insert thumbnail image from php script
- widget: input the px value from user and use it as inline style in widget function
- How to call a certain object/menubar in a PHP file
- Setting pages for posts
- Trying to see if page is category or single and displaying title with appropriate heading tag
- Get null from POST
- How to have post count after each listed category
- why is markup routinely placed in functions in wordpress?
- Customise Author Page?
- Is there a way of displaying related posts from lowest hyrachical order (lowest child category to parent category)
- How can I get values from a custom post type depending on where I click on my SVG map?