BuddyPress Component Slug 404 [closed]

I think I’ve figured out the issue. Even though my screens.php file is listed in my includes method, for some reason the function “bp_announcements_screen_list” does not work (perhaps it isn’t being loaded?) If I change the value to a method in the component class (‘screen_function’ => aray(&$this,’ bp_announcements_screen_list’)), I can echo a string and have … Read more

Query specific posts from parent by slug rather ID

there are two WordPress functions you could try: http://codex.wordpress.org/Function_Reference/get_page_by_title (as suggested by @t31os in the comments to your quoted link) http://codex.wordpress.org/Function_Reference/get_page_by_path if you have already tried them, please describe how these failed to do what you want.

retrieve post slug by post_tags taxonomy

i am not sure but try this: query_posts(‘category_name=”. $category[0]->cat_name); if (have_posts()) : while (have_posts()) : the_post(); $posttags = get_the_tags(); if ($posttags) { foreach($posttags as $tag) { $all_tags_arr[] = array($tag->name,wp_basename(get_permalink())); } } endwhile; endif; foreach ($all_tags_arr as $cat_by_tag) { $output_promotion .= “<li><a href=”‘ . get_bloginfo(‘url’). “https://wordpress.stackexchange.com/” . $cat_by_tag[1] . “https://wordpress.stackexchange.com/”>’. $cat_by_tag[0] .'</a></li>’; } print_r($output_promotion);

Using Page/Post Slug In Link / URL

Umm .. are you sure you are using WordPress 🙂 A standard search url for WordPress uses the URL parameter ?s or /search/ so you can have any URL’s you like such as example.com/?s=current or example.com/search/current Others you can try are /tag/current search for all posts with the Tags current /category/current will search for all … Read more

list child pages as slug

Ok, this code should set you on the right path. It’s not designed to do exactly what you want, but judging by your code above, you seem fairly compitent, so should be able to amend as required. I’d also recommend looking at the Walker_Page Class, that way you can compare the methods below to those … Read more

custom page url slug needs illegal ?id=1 for javascript

Here’s a potential solution using the page_link filter and testing for the presence of a meta key to add a query arg: function wpa84303_page_query_arg( $permalink, $page, $sample ) { if( $query_arg = get_post_meta( $page, ‘query_arg’, true ) ) $permalink = add_query_arg( ‘id’, ‘0’, $permalink ); return $permalink; } add_filter( ‘page_link’, ‘wpa84303_page_query_arg’, 10, 3 ); Add … Read more

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