Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

142
Views
How to Display Post Expiring plugin on posts data table wordpress plugin

I'm working on WordPress using posts data table WordPress plugin and im using Post Expiring plugin i want to display the expire post data to data table WordPress.

                $post_data_trans = array( 
                '{id}' => $_post->ID, 
                '{title}' => $title, 
                '{category}' => get_the_category_list( ', ', '', $_post->ID ), 
                '{date}' => get_the_date( $date_format, $_post ),
                '{expiring}' => get_the_date( $date_format, $post_id, 'expire_date' ),
                '{author}' => $author, 
                '{content}' => $this->get_post_content( $args['content_length'] ) 
            );

this code for posts data table wordpress plugin I'm using expiring column from Post Expiring plugin, and this is the code for post expiring

if( $column_name === 'expiring' ){
        $postexpired = get_post_meta( $post->ID, 'postexpired', true );
        if( preg_match("/^\d{4}-\d{2}-\d{2}$/", $postexpired) ) {
            $postexpired .= ' 00:00';
        }
        echo !empty($postexpired) ? $postexpired : __('Never');
    }

and i get just the Date for post not the expiring date please any one can help me please

about 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!