This code returns the post ID in the current language.
$translated_post_id = apply_filters( 'wpml_object_id', $post_id, 'post' );
So, you can use $translated_post_id in is_page.
Related Posts:
- After disabling WPML multi currency, the currency is still handled by the WPML
- Page not visible in ‘All pages’ after being added through PHP
- $.ajax results in 403 forbidden
- Change WooCommerce currency programmatically on AJAX request
- How to get shared CSS body class between translated WPML pages [closed]
- How to translate the blog date in the Avada theme [closed]
- WPML posts_joins on translated items
- Query both first_name and last_name from wp_usermeta at the same time
- Image Upload “exceeds the maximum upload size for this site”, but php.ini is correct
- PHP – redirect https to http and www to non-www
- Action ‘save_post’ not working for quick edit
- simple wordpress ajax plugin not working when not logged in
- Audio Player not loading when the content is loaded through Ajax, MediaElement.js no applied
- Notice: Constant already defined in wp-config.php on (non-existent) line?
- body_class filter – Is there a better way to write this code?
- Limiting the WordPress feed to only a certain limit of characters
- Mail not sent when I set HTML headers
- A Specific Blog post to be assigned as the landing page of my wordpress blog
- Sort registered users by post count? (inside admin dashboard)
- Is this code malidcous
- The custom logo, site title, and description doesn’t appear at the same time
- How to change a public function inside a class of a plugin?
- OrderItem get_total() returns lower value than $order_item->get_product()->get_price() * quantity
- Put CSS inside a PHP file and include it the right way
- Force SSL using FORCE_SSL_ADMIN
- js file in root loading without
- Why is the post meta[] empty when I make a call to the wordpress rest api?
- WooCommerce – Reset quantity input field when variation changes
- Query all posts of a custom taxonomy term
- How to create a form and display its content as table in admin panel?
- Different loop output every x posts in custom post type
- Trying to get property of non-object “ wordpress ”
- Dynamic Sidebars & Echo
- Add_action not working in required file of functions.php
- WordPress: get recent posts, delete the current category
- Add to cart function not working for first product when cart is empty [closed]
- How to abort saving data in save_extra_profile_fields function WordPress?
- Slick + PHP + ACF + JQuery slide reveal not working
- Get the date of the className or classID
- Exclude category
- how much php coding do i need to know in order to create web blog using wordpress.org
- WordPress wp_add_inline_style unable to give hex colors?
- Parse error: syntax error, unexpected end of file
- How would I use this filter to change the output of the date format to “Twitter time”?
- WP Business Directory Manager Plugin Admin Listings?
- wordpress admin plugin menu custom css
- Warning: printf(): Too few arguments in helpers.php file
- Woocommerce Product_cat for current category page
- Using CFDB7 vs Custom MySQL Database [closed]
- Get featured image with custom size outside WordPress
- How to use the checked() function to check for a non-empty var
- How to add post thumbnail dynamically using Jquery?
- WordPress redirects to old login after migration
- How to do something when user profile rendereing?
- Get the featured image url of clicked post
- How to get comment_ID by post_ID in wordpress
- GD star rating function problem [closed]
- CSS images don’t show up with bloginfo
- Custom functions for string data calculations
- How are these PHP functions applied to a specific page in WordPress?
- Display additional user fields
- “pre_get_posts” orderby custom date field in different format?
- How to show categories and date on posts
- Problem with inserting multiple images in gallery of each WooCommerce product programmatically
- Woocommerce template file outputting tags
- How to update posts’ custom taxonomy selection?
- Reliable way to add nonce to HTTP Header in WordPress?
- How to Call on WordPress Custom Fields without a Plugin
- How to defer javascript from within the functions.php file without losing all styling?
- How to pass bloginfo(url) in a jquery
- Save custom field on WP_List_Table
- How to empty price of simple and variable product when product changed into out off stock
- Load script and styles using an array of resources
- Cannot transfer ajax post data from js to php file
- Create Schema in WordPress with PHP
- Add element after navigation element title don’t works like I expect
- Send Notification after post published was working but stopped after the last WP update
- How to make `wp-list-table` show the` custom-fields` I have in Custom-Post
- Woocommerce custom attributes list help
- custom fields anchor points php
- How to delete specific element when it is not homepage?
- Search results template listing all posts
- How do I correct this filecount?
- Stripe button is not working in a template page
- How to properly send many mysql queries via php and what happens with ajax requests after they are sent?
- Using catch_that_image() for galleries?
- PHP code rendered in HTML
- Conditional Content Display
- How to use custom fields to replace top-level parent title with an image using wp_list_pages?
- How to add margin underneath woocommerce total price amount -> productpages
- Query posts by custom fields (object post)
- Sort author list alphabetically
- Changing regular db connection to $wpdb
- Custom HTML/CSS Theme into WordPress – SEO considerations
- what is %variable% in a wordpress plugin? [closed]
- Can I associate a custom post type with another custom post type?
- ajax problems on loading page [closed]
- add_post_type_support but for front_page only
- Is there a way to get a path to the theme directory without the server name?
- Add Imports to Existing WordPress Import Map