redirect word-press page with page values

Use this code and check<a href=”‘. get_permalink(‘dashboard’) .’?dashboard=myprofile” class=”wpum-profile-account-edit”>’. __(‘ (Edit Account)’, ‘wpum’) .'</a>. In get_permalink() function you can only pass the post ids or page titles to get the page url but you have added additional parameters with that so it was not getting the correct url. So I have edited the code to … Read more

What method would I use to show an image in between X amount of posts on category archive? [duplicate]

If you can update your theme files, just update category.php and archive.php this way: <?php $counter = 0; while ($the_query->have_posts()) : $the_query->the_post(); ?> <?php if ($counter % 4 == 0) : ?> <div class=”my-ad”>my ad</div> <?php endif; ?> <div class=”post”> <?php the_title(); ?> </div> <?php $counter++; endwhile; You can also change archive/category template by your … Read more