uxarax
Forum Replies Created
-
I have the latest redux version on my theme and latest UM but the same here, there is a conflict after UM activationm theme panel (Redux) options like color and select are broken do you have any idea about that?
@shariqkhan2012, Yes same theme on all sites
@implenton your way is working Im very sorry was my fault because didnt create one of these pages and got post permalink instead however its working fine thakyou would be better if you can explain with your experience how to provide a default link if the page is not created.
thanks again
the only problem that the last way shoing randomly when I use multiple pages
@implenton your code seems nice and is working fine thankyou
$contact_template = get_pages( array('meta_key' => '_wp_page_template','meta_value' => 'template-contact.php') ) ; $link_contact = get_permalink( $contact_template[0]->ID ); $second_template = get_pages( array('meta_key' => '_wp_page_template','meta_value' => 'template-second.php') ) ; $link_second = get_permalink( $second_template[0]->ID ); <?php echo $link_contact; ?> <?php echo $link_second; ?>
@implenton Im gonna try your code without the function right now
@swayam.tejwani thanks for your reply but Im trying to use a function because I want to use multiple templates and the links will be visible on header, so I dont want to add IDs of pages manualy but I want to grab it from the database inestead.
SO guys the code in my first post is working fine but as I said its not working on all wordpress sites this is why Im confused.
solved it alone
If anyone will need below I have the solution
$variable = str_replace("%post_title%", $post->post_title, $variable); $variable = str_replace("%post_tags%", get_the_term_list( $post->ID, 'post_tag', '<b>', ' ', '</b>' ), $variable); $variable = str_replace("%post_categories%", get_the_term_list( $post->ID, 'category', '<b>', ' ', '</b>' ), $variable);
But Im looking to add also the post title in <b> tags is there any way I couldnt get it working
any help? :S
Forum: Fixing WordPress
In reply to: How to give paged,pagination to the custom terms?any help? ??