Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #26812


Ignore:
Timestamp:
01/11/2014 03:04:04 PM (11 years ago)
Author:
ocean90
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26812 – Description

    initial v1  
    1010
    1111Now on front end, index.php page I want to show attachment information associated with images, videos like title, description. I am using following code inside loop.
     12
     13{{{
    1214<?php
    1315
     
    2123//print_r($mchilds);
    2224?>
     25}}}
     26
    2327Resulting array $mchilds contains info about only one attachment. I have inserted 2 images and 2 videos, but $mchilds array is containing info of first one only.
    2428When I checked the database and run this query in database "select * from wplr_posts where post_parent='111'" then I found that other 3 attachments have value "revision" for "post_type" column.