Permalinks don’t update nor link properly

How are you linking to the other events? Are you hard-coding the anchor links somewhere, like in your post content or custom fields? As in, are you typing out <a href=”https://wordpress.stackexchange.com/questions/327355/example.com/?p=123″>? If so, you might have manually update all of the links you added to use the new permalinks. After you updated the permalink settings … Read more

Group the events post in month+year format?

$arg = array( ‘post_type’ => ‘events-promotion’, ‘posts_per_page’ => -1, ‘post_status’ => ‘publish’, ‘meta_key’=>’wpcf-event-date’, ‘meta_value’ => $curdate, ‘meta_compare’ => ‘>=’, ‘orderby’=>’meta_value’, ‘order’ => ‘DESC’, ); $the_query2 = new WP_Query( $arg ); $arr=array(); if ( $the_query2->have_posts() ) : while ( $the_query2->have_posts() ) : $the_query2->the_post(); $eveid2 = get_the_ID(); $evedate2 = get_post_meta($eveid2,’wpcf-event-date’,true); $evedt = date(‘d/m/Y’, $evedate2); $pdate = date_i18n( … Read more

Creating new page overwrites old page

Are you using loop before getting content from WordPress? Like this one: <?php if( have_posts() ): while( have_posts() ): the_post(); ?> You content goes here <?php endwhile; endif; ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)