The tag has no usage guidance.

learn more… | top users | synonyms

-1
votes
2answers
2k views

get_children - wp_get_attachment_image

I explain my problem: I create a post with an image get_children - wp_get_attachment_image functions returns that image I delete post image and add a different one get_children - ...
2
votes
1answer
591 views

How can I paginate image attachments in a post?

I have a post with attached images and I was able to display the images but I'm can't seem to find a way to paginate the results. I am using get_children but now I'm wondering if my method of ...
1
vote
1answer
43 views

Need help with category listing!

I'm trying to solve this for a while, but I couldn't get a satisfactory way to get what I want. Maybe it's very simple and I'm just too inexperienced. I need a way to display all the article titles ...
1
vote
1answer
2k views

How to order get_term_children output by alphabetic order

The following creates drop-down lists of my custom taxonomy children, but the order of the output seems to by creation date, not by alphabetical name. I tried adding orderby to the array with no ...
0
votes
1answer
36 views

How to show the view more on my display of pages shortcode

I want to show the list of childpages under a certain parent page & set how many childpages to display & show the "View More" link below the last child page displaying. What was missing from ...
-1
votes
1answer
1k views

get_category_children/ the new get_term_children not work

I have a custom Walker for a Advanced Search, that outputs the categories for multiple search by categories in checkbox. The Problem here is, that i use the get_category_children for the children ...
0
votes
0answers
14 views

Want to display individual media file image link from get children array

In the code you can see I retrieve all the image attachments successfully, but now I want to create a link that points just to the individual attachment image and not the blogg post. Iv'e tried ...
0
votes
0answers
13 views

Trying to get the link to the media file image attachment to display in a lightbox

Tried many variations including wp_list_pluck with no luck. Not sure how to proceed. <?php $attachments = get_children( array( 'post_parent' => get_the_ID(), // $pageChild->ID, $post->...
0
votes
0answers
30 views

How to display child pages with in a limited child content?

I have a php snippet that will displayed child pages. And now, I want to displayed only the featured image with the 55 characters of content only (except the title) and put some button. Like this http:...
0
votes
0answers
31 views

get_children() show deleted attachments of the post

I have a problem with the attachments in a post :( If I upload an image into a post and after I delete it, Wordpress show the image as still attached to that post. This is my code to retrive the ...
0
votes
0answers
30 views

Getting attachments to a post to show in the order they are in the WYSIWYG editor

I am trying to get the images that are inserted into my gallery to show in the actual order that they are showing in the WYSIWYG editor. My code looks like this: <?php $args = array( ...
0
votes
0answers
185 views

Wordpress list child pages of custom post type

Im stuck on this and any help would be appreciated. Say there is a parent page called "Stuff". And Stuff has several pages under it. Stuff more stuff more stuff1 more stuff2 It has no children ...
0
votes
0answers
235 views

Check if post has image

I'm displaying a list of posts and I want to indicate if the posts have images. I'm using this code to check if a post has an image. <?php $attachments = get_children(array( '...