Don’t wrap the entire section in __()
, just wrap the part you need to translate:
<?php next_post_link( '%link', '<span class="meta-nav">←</span> ' . __( 'Nästa nyhet', 'mytheme' ) ); ?>
Related Posts:
- Proper use of internationalization
- i18n in WordPress Theme
- How to create .pot files with POedit?
- Why have on every line
- How does printf( __( ) ); work?
- How to check if woocommerce is activated in theme
- Function to return true if current page has child pages
- WordPress Themes and PHP unit
- How to determine if WP_DEBUG is enabled? [duplicate]
- PHP unit testing WordPress?
- Proper use of Output Buffer
- Include a external PHP file into a WordPress Custom Template
- List of all theme customizer control types?
- Need help setting default setting value for radio button in theme customizer
- why is translation not working on theme?
- Get author full name
- Is having multiple theme customizers for different pages possible?
- How to export/import theme customizer settings?
- Remove Customize Background and Header from Appearance admin menu without CSS or JS
- How to remove hardcoded characters from playlists?
- function_exists call in function.php
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- Debugging an error: wp_enqueue_style was called incorrectly
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- reason of splitting theme files to multiple files
- What is the purpose of an extra file for translation?
- How to get the registered sidebar’s name by its id?
- is there a simple way to list every templates / php files used to generate a specific page?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- Dynamically change feature image in customiser
- One button to change all settings in theme customizer?
- Who’s job is it to load a plugin’s translated strings?
- Custom HTML structure in wp_list_categories
- Guidance with The Loop for CMS
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- How to use copy() function and paste file in /wp-content/themes directory
- Why isn’t my if/elseif/else working correctly here?
- How to use SRCSET with get_the_post_thumbnail()?
- Design view breaking on Pages
- Adjust the results quantity for Search Results page pagination
- Dynamically loaded Theme components based on Customizer Settings values : changes not appearing in Customizer preview – (Workaround found)
- How can I add a class to a single menu item?
- Multiple do_shortcode($content) within one shortcode
- List authors with posts in a category
- Understanding WordPress child theme custom JS loading
- How can I loop into two different DIVS without repeating the DIVs
- Removing unnecessary wordpress files
- Remove css styles from specific page
- Use different javascript files for each page on website
- WordPress loop specific thumbnail size
- Is the regular ajax request method safe or I should use admin-ajax.php?
- Show different Customizer Settings on Page-Tamplates
- How to get custom image size for image uploaded in Customizer
- Passing array in add_option()
- do not show web page section when using advanced custom fields pro
- Is it possible to use the featured image of a page as a css background without inlining?
- PHP Customization: Taxonomies and Queries, why? [closed]
- I think emoji are killing my WordPress site… How can I debug?
- Widgets not showing in my custom theme
- How do I list the_tags() into HTML data-attribute
- Site Health : An active PHP session was detected
- Switching between custom templates in a post type of the admin menu
- Am I not understanding plugins?
- WordPress if (is_page) translation on certain page
- Using Font Awesome as post thumbnail
- Can I change a variable in a content part while calling it?
- WordPress different language footer text
- How to make thumbnail image fit into a div where image dimentions are completely different?
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- Custom Logo URL | Help me print the URL of the custom logo I inserted into my theme
- How to display recent posts on home page with custom HTML
- Remove annoying WP Adminbar CSS
- What is the fastest way to load PHP functions that are only used in one theme template?
- My Own layout in WooCommerce pages [closed]
- Differences when using the the_time and the_date functions
- Exclude posts from homepage having a specified tag
- Why is this Ajax not working?
- How do I access the media settings
- How do themes render caption texts in extended markup (e.g. “wp-caption” paragraphs)
- Changing the template hierarchy
- using add_action for a header hook that has an additional parameter
- custom shortcode will not display the wrapped content
- Can’t load WP function into external function
- Custom category code not showing all posts
- Displaying theme options in css
- max_input_vars: how many am I using?
- How to show a dynamic_sidebar if main content content’s height is > a set amount?
- Set WordPress Default Template
- Internationalization and functions that use it
- Adding country tags automatically
- write custom woocommerce templates and forms
- Implement toggle switch for theme options in settings API
- Using a `Template Parts` folder instead of an `Includes` folder in a Custom WordPress Theme
- Using a variable in is_page(array())
- Trigger popup in a php if/else statement
- Anyway to output the registration form like the login form with wp_login_form()?
- How do I get current page ID in WordPress customizer file?
- Customizer: Output default value in Customizer CSS