Are we talking permalinks here or any URL? If any, create an array( 'en' => 'en_url', 'de' => 'de_url' );
and get the URL by accessing the array using qtrans_getLanguage()
index.
If you’re translating internal permalink use the qtrans_convertURL()
function.
Related Posts:
- What’s the difference between WordPress random_int() and PHP built-in function random_int()?
- How to use the do_action () with parameter
- TinyMCE custom styles remove class when switching styles
- Extending the site search to include a single custom field
- Notify users whenever a new post is published based on their preference
- Remove Header and Footer in iframe
- Changing a function in function.php to a shortcode – for listing categories of only a certain post type
- Formatting post content to exclude gallery
- Why do I get undefined function export_wp()?
- How to remove the embed_footer?
- Redirect if not logged in?
- How to set global variables in template page?
- Setting featured image with function, 1 part not working
- Function to show only first instance of shortcode
- Comments to only be seen by their author
- Using the child theme functions.php to change the customizer.php on parent theme
- Can’t Update function.php after writing short code
- How to get last updated row or ID in wordpress
- Remove function or filter
- options.php problem – data not saved
- Filtering posts by category name based on page’s slug
- adding custom classes for tables
- Load parent theme files before child theme functions.php
- 2 Loops, Only Displaying 1 Loop in Both Loops
- CSS for menu item added via functions.php
- Two functions.php files in one theme
- wp_dropdown_categories and custom attribute
- Default Gallery Edit/Template Editable?
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function ‘greenday_head’ not found or invalid function name
- How can I add text to all posts/pages/categories/homepage etc
- Make parent page only link to first subpage
- Pulling Twitter RSS feed not working as expected (fatal error)
- Related post using post title
- Execute a ultimate member action when user role is updated
- Search filter by Post title OR Meta Title Value [duplicate]
- Why is functions.php file in child not initializing and over-writing parent?
- Use third party Library in wordpress
- Creating new blog on multisite programatically without hacks?
- Allowing users to view private posts (pending approval)
- Filtering out the #more anchor link that gets produced by
- file_get_contents – failed to open stream
- Exclude from the query posts with meta_key and meta_value
- How to add custom JavaScript in functions?
- wp_nonce_field is breaking form for reasons unknown
- srcset and custom field get_post_meta and wp_get_attachment_url
- hide shortcode using hooks
- Adding code using functions.php in child theme
- Extending a custom framework built into WordPress to automatically turn the ‘Search Engine Visibility’ setting ON / OFF, dependant on environment
- Page get parameter doesn’t work with is_single() function
- Filter to wp_list_authors
- Contact Form 7 If Condition
- Javascript not loading after the document ready
- Need to convert image url to a Base_64 data url with wordpress function..
- Add Adsense code between job listings – wp job manager plugin
- How can I change the size of the text in Word Press
- Using depth=n in wp_list_pages
- How do I display a date correctly that is stored in the database as a backwards 8 digit number from Advanced Custom Fields? [closed]
- Modify shortcode to work with custom post types
- How to hightlight all ancestor menu items of a child page NOT displayed in menu
- shorthand syntax for custom fields
- How do I pull avatar from post using BuddyPress? [closed]
- Show admin page, only if function is being used
- Get users with different roles and call function on each of them (user_meta)
- Fatal error: allowed memory size when after using enqueue_script
- Show errormessages on wrong username/password on custom loginform?
- How to apply the ‘current_page_item’ class to an archive page in `wp_list_pages()`?
- functions.php pharse error on complete new install
- If has action not working as expected
- Update wp_postmeta table based on 2 keys
- Best practice to call a function from a button-link?
- Disable wordpress update notification
- Class parameter in get_avatar args doesn’t get added to output
- How to customize archive widget only for cpt?
- some profile informations like youtube link doesnt seem
- Help using ShortCodes to style whole chunks of the post
- Extend WordPress Audio Widget to accept HLS (.m3u8) URLs
- How to modify or override a core function (wp_star_rating)
- locking content with overlay/pop up ads
- How to use `foreach()` in ajax call
- Is there is a way to check daily first login?
- delete_user_meta for user in spesific group
- Pagination not working on my archive page for a custom post type
- Remove Featured Images from Posts Older Than a Certain Date
- How to list out all values from the get_body_class array
- Home/Static Page View for Visitors pages after that should be restricted
- functions.php filters not applied in AJAX call
- Settings in functions.php used by a plugin
- Mail function not working with user accounts
- Function not recognizing page id?
- Make WordPress search for only this tags or exclude certain tags from search [duplicate]
- Conditionally write open graph meta property in header
- Pull random comment from specific post, display on homepage with shortcode
- Adding result from PHP function into an input field
- Using array page name together with page id to deregister script
- Modifying Page-Links format
- Give a function a unique ID
- how to handle multiple forloop?
- PHP error in shortcode [closed]
- Get all users from role and add to dropdown (select) – wordpress, javascript
- WordPress enque the same script causes the setInterval not to work