Trying to put a search page on site

You form action value is wrong. It should be home_url(). WordPress will pick the search template automatically then. The search field has to use the name s: <input type=search name=s> Otherwise WordPress will not recognize the request as a search request. The error happens, because you included the functions.php somehow withut using the automatic by … Read more

Subpage Conditional

Hmm, I’ll take a crack at this. There’s a few ways to go about this. Check to see if page is a direct child, check if it is an ancestor. Something like below might work for you if (283 == $post->post_parent) { echo ‘this post has a parent of 283 so do this’; }else { … Read more

Permalinks of New Pages and their Parents

NOTE: The information below is somewhat inaccurate. My mistake. The Page hierarchy is shown in permalinks, and the article I linked to discusses changing it in Posts. Thanks for the correction, @Milo. Original Post: You may not like this answer, but WordPress doesn’t include page hierarchy in urls. It is for use in your theme … Read more

List Parent page with sub pages

Found it thanks – thought I’d looked here but I must of missed it. http://codex.wordpress.org/Function_Reference/wp_list_pages#List_Sub-Pages

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