We're growing into something new. Read More
mabuc

Mabuc


<?php 
      $link = get_option('theme_portfolio_link');
      $page_path = get_page_by_path( $link, 'page' ); 
?>
<a href="<?php echo get_page_link( $page_path->ID ); ?>">Back to portfolio</a>

Create a dynamic get_page_link()

Hi guys, I created an extra link in my frontend of single portfolio label it “Back to portfolio” and I created a link using get_page_link function.. it works fine if you have slug like this “blog” but it does not work if you have slug like this “our-blog” I am not sure why it’s not working.. it should get the page ID.. here’s my code below

Discussion

vimeo/youtube video link on attachment..

Hello, How do you achieve attaching a vimeo/youtube video as attachment in a specific post/page? mostly I do it by uploading self hosted video like mp4.. anyone can help? thanks

Discussion

Import/Export Theme Options in WordPress

Hi all, I am looking of a tuts on how to implement import/export theme options in WordPress.. can you share me a link? thanks

Firefox image hover

Hello, I am sure this is an easy fix but I can't find any solution on how to solve this.. when I hover the image in chrome it works correctly but when I used FF it decrease it's dimensions.. see my image attached..

Discussion

Re-use images in Media Library

Hello, How do you re-use images in media library to a post/page in WordPress.. any suggestions how to do it.. thanks

Discussion

jQuery Masonry height

Hello, are their any ways to remove the gaps at the bottom of each column using masonry effect? I want the last images to have the same height.. anyone can help :) thanks

$exclude_post = get_post_meta($id, "exclude", true);
	$args = array( 'post_type' => 'gallery','post__not_in' => array($exclude_post), 'paged' => $paged );
					$wp_query = new WP_Query( $args );

Dynamic exclude cpt post in loop...

Hello, I have a CPT "gallery" and I have a custom field "exclude". I want to exclude a post from the loop and when exclude field is check that specific post should be exclude in the list.. here's my code..