Posts

Showing posts from August, 2025

Replace permalink with 'your_acf_field_name' your ACF

Image
  function my_custom_permalink_filter( $post_link, $post ) { if ( 'news-articals' === $post->post_type ) { // Target your specific post type name here $acf_field_value = get_field( 'url', $post->ID ); // Replace 'your_acf_field_name' with your ACF field name if ( $acf_field_value ) { $post_link = $acf_field_value; // Replace the tag with the sanitized ACF value } } return $post_link; } add_filter( 'post_type_link', 'my_custom_permalink_filter', 10, 2 );

Shortcode to display "news-articals" custom post type

Image
 // Shortcode to display "news-articals" custom post type function shortcode_news_articals() {     ob_start(); // Start output buffering     // Query      $the_query = new WP_Query(array(         'post_type'      => 'news-articals',         'posts_per_page' => -1,         'post_status'    => 'publish', 'meta_key'       => 'date',           // the ACF field name 'orderby'        => 'meta_value_num', // order by numeric value 'order'          => 'DESC',           // or 'ASC'     ));     if ( $the_query->have_posts() ) : ?>         <div class="newsarticals">         <?php while ( $the_query->have_posts() ) : $the_query->the_post(); $da...

New Castle Concerned Citizens Newsletter if not send automatically, Send this to Manually

Image
https://newcastleconcernedcitizens.com/wp-admin/admin.php?page=newsletter_system_scheduler  <input id="" class="button-primary tnpc-button" type="submit" value="Run manually" onclick="this.form.act.value='trigger';return true;">

True Words

 लम्बा दागा या लम्बी जुबान। हमेशा उलज जाते हैं। इस लिए दागा लपेट कर या जुबान समेट कर रखनी चाहिए ।