Proper way to get page content
Just to clarify:
You mixed two things here. qTranslate stores the different languages in the same post. If you call get_content()
, $post->content
or an other direct query, you will get the whole content with all different languages from the database.
What qTranslates do, it creates a filter-hook which is attached to the_content
hook. If somebody call the_content()
in a page template, all other languages will be filtered out.
So you’re right. To filter the other languages, you have to apply the filter-hook the_content
to your output.
Related Posts:
- Get wp_get_attachment_url outside of loop
- How to embed page content in a blog post
- WordPress parent select need to be removed
- Is there a better way to programmatically insert content into a page?
- How to echo excerpts with wp_list_pages?
- Page displays content from different query?
- How to retrieve attachments from child pages of a specific Page?
- Custom page with queries returns 404
- Query specific Pages
- Query pages based on tags
- Show content if page is a grandchild of top level page
- Get all pages to display at once
- Some pages can’t be updated – post_content field not updating
- Filter posts by author selected in page
- How to get current page ID outside the loop?
- Get the content of a specific page (by ID)
- featured image as background image on pages
- Access the same page from multiple urls (wildcard)
- Add a Page without header and menus?
- Prevent WordPress from adding linebreaks to javascript embedded in a page
- Automatically change page password
- Too many pages causes WordPress admin to be unusable
- How to get the list of posts in a static page other than front page?
- Using JavaScript and JQuery in Page
- How can I make Disqus comments not show up on pages?
- Get IDs of posts currently visible on archive
- CMS: Making complex pages editable by the end user
- Show child pages when on a child page
- How to display thumbnail and excerpt of a page on homepage?
- How to create a page when a theme is activated?
- How do i fix? WordPress database error: You have an error in your SQL syntax;
- WordPress Admin – Add Edit link to specific page under Pages Menu
- Show child pages and sibling pages on the child page
- How do I use featured images on index.php?
- Problem With Pages Displaying
- Removing the TinyMCE editor for a given page template
- Guest authors, sort of like Wikipedia, but more theme-able
- Missing Pages (Drafts?)
- WordPress redirects me to posts page after editing one page
- Getting to a specific page on website using specific code instead of navigation bar
- Can’t see content on page to edit
- Redirect to page list when page published
- How can I get the homepage from the loop?
- Role can edit just one page [closed]
- Suddenly forbidden 403 error on some pages
- How do I Name a WP page in the New(ish) Block Editor?
- How to select a specific page
- Cannot enter “::before” for li tag when editing a WordPress page
- How to get page_id for url rewrite or how to use page slug for calling a page?
- JQuery Plugins in WordPress
- This code won’t find authors page?
- WordPress backend:How to hide some specific pages under Pages–>All Pages
- how can i remove page title on desktop view
- How do I edit text displayed on my browser tab?
- Page menu not showing in admin, new Page button missing in toolbar too
- Keep page hierarchy in wp_list_pages, even if on a child or grandchild
- Order by modified date working in POSTS but not PAGES
- Allow a user to edit their own page and profile only
- WordPress Page doesn’t load the template selected
- Custom folder for wordpress page templates
- way to make all pages with certain tags public?
- Separate URL for a specific page
- Pages that don’t look like blog posts?
- Can I use Pages like a Wiki
- list child-pages as normal pages?
- return page name in url
- Next and Previous Page links based on ‘Order’ attribute
- Create multiple pages with tables from json file
- Search anything from a Child and Sub-Pages of their Parent page
- Can i use 2 page content-forum & content-forum-slug on bbpress?
- Attaching a file to a page without adding to media library?
- Change page width in refined magazine/mag and news theme
- Groping Pages Per Department Option
- Requiring a Visitor to Enter a Password Each Time They visit a Page
- Display meta data attribute in user profile
- WordPress default theme cannot get full page on entry content div
- How to remove the duplicate title tags and duplicate meta descriptions?
- WordPress form submit to custom page template does not work
- Two different layouts for the same post
- My page title turns into a h2 tag – What to do?
- How do I locate a third party page represented as a slug in my WordPress website?
- Customise the_title in admin area
- problem with loading pages
- Content not displaying on page
- Blank white space where header was [closed]
- Featured Image not displaying in a page
- Display child pages on homepage template
- Set order acs and no paging for archive page
- Pageview all of sudden not working
- Childpage title + content on Parent Page
- search page different results
- Naming custom page templates
- How can I use Page editor for two separate templates?
- Sort the data in WordPress using get-page-by-title
- Adding a filter to wp_edit_posts_query() to prevent hierarchical display of pages
- WordPress is picking up links that don’t exist
- How to customize the author page in wordpress?
- User profile in front-end
- custom css in one page
- Why is a page shown with ‘hidden’ next to the name in the list of pages if the page is set to public?