The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
4answers
1k views

How to limit the characters shown on the page - get_content

I've the below php to display the content of the post id#9 on my 'home page' of my site, so that whenever the client updates the page, it's reflected on the homepage as well - rather than having to ...
0
votes
1answer
30 views

Any difference betweenn posts and pages for one page?

Ive been checking out wordpress but Im having some trouble figuring out what I should use to get the text from wp on my site. Posts or pages. Im making a one page website. I know how to get text from ...
0
votes
1answer
64 views

Get post content from outside the loop with plugin shortcode usability

This is great for showing just the raw content... Get post content from outside the loop But i'd also like to apply shortcodes from various plugins to my content to affect the content. What would I ...
0
votes
1answer
278 views

Hooking get_posts()

On a site this is a plugin that uses get_posts() to make a list of pages. The list is used to create a list of pages and create next page and previous page links. ( ...
0
votes
1answer
299 views

how to display all images from their siblings/ from same parent?

I need to know how to display all images from the current page siblings. for eg. I got two parents (Hockey and football) with children. In all this children I got one or several images attached (I've ...
0
votes
1answer
163 views

Add page as static html into another page

Is there a way to include a wordpress Page into another one? I'm not just talking about getting the content using get_page(), but to import the whole page (theme + content). I have been looking around ...
0
votes
1answer
205 views

Sort the data in Wordpress using get-page-by-title

Just got this "fresh" task this morning. I have a website that using the following syntax $thenews = get_page_by_title(date("Y")); But in the website it's displaying not the latest news. What ...
0
votes
0answers
35 views

How to exclude child page on siblings and parent page in WordPress?

I'm trying to hide details about a child page when I'm on the siblings and it's parent page and I don't know how. What I made is exclude the child page details when I'm on it. I want to exclude the ...
0
votes
0answers
90 views

Shortcodes don't work

I'm trying to make shortcodes work. Because I use a onepage website, with get_page in page.php, the shortcodes in the wordpress admin don't work. I tried to activate the plugins I'm using (which are ...
0
votes
0answers
162 views

Getting post content within wp_nav_walker

I have a custom walker set up designed to add content into the nav menu. The problem being that it is not pulling the content. The post object returned by the get_post/get_page has an empty ...
0
votes
0answers
2k views

Get page content and execute shortcodes on a page

I would like to get show multiple page's content on one page with shortcodes. If I use return $html; the shortcodes not working, if I use return do_shortcode($html); the shortcode working, but the ...
0
votes
0answers
249 views

get_pages not returning any results or error when get_posts works

I have a code sample that works with get_posts but I now need do with get_pages so I can get grandchildren in the results set: $attachments = get_posts( array( 'post_type' => 'attachment' ...