Variable Not Working Inside is_author() Array

You’ve converted $taxonomy_id_list to a comma separated string then shoved that string into an array. Your array now looks like array( “1,2,3,4” ); That is not going to match any author ID. You are misunderstanding what implode does. This–1,2,3,4,5,6,7— is a set of integers. If place in the array like this– array(1,2,3,4,5,6,7)— you get an … Read more

Passing variables through permalink structure in custom post types

The one issue I see immediately with your rewrite rule is this part: index.php?pagename=charities You don’t have a page named “charities”, you have a custom post type, so that should be: index.php?charities=$matches[1] assuming your custom post type query var is charities. HOWEVER, that said, I would not add rewrite rules for this, WordPress will take … Read more

Shortcode and variable

For anyone that comes across this in the future, here is what I figured out: $askavl_instagram_contact_title = get_post_meta(get_the_ID(), ‘askavl_instagram_contact_title’, true); if(isset($askavl_instagram_contact_title) && $askavl_instagram_contact_title != “”) : $tag = str_replace(“#”,””, ((string)$askavl_instagram_contact_title) ); $thumbsize = “220px”; $image_limit = “2”; $easyInstagramSC = “[easy-instagram limit={$image_limit} caption_hashtags=false caption_char_limit=0 author_text=”” thumb_click=’thickbox’ time_text=”” thumb_size={$thumbsize} tag='{$tag}’]”; echo do_shortcode( $easyInstagramSC ); From what I … Read more

Trying to create an edit page link?

What you want is the get_edit_post_link function. Usage: echo ‘<a href=”‘.get_edit_post_link( $post_id ).'”>edit</a>’; Your use of global $post and the other issue is a separate problem, you should ask a new question and provide more details ( including the code for the template being used )

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