Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

143
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda