Tag Archives: url

Avoid Static page link like get_permalink()

Avoid Static page link with get_permalink(10) Use below code and make your code standard.

$pages = get_pages(array(
'meta_key' => '_wp_page_template',
'meta_value' => 'page-template/case-results.php'
foreach($pages as $page){
$custom_pade = $page->ID;
<a class="button4" href="<?php echo get_permalink($custom_pade); ?>"><strong>View All</strong></a>

Add encrypted code into URL for specific page in wordpres

add encrypted code into URL



$urllink = “http://steve.seomonastery.com/jig-free-report/&#8221;;
$actionurl = wp_nonce_url( $urllink );

echo $actionurl;

%d bloggers like this: