Storing additional information about the user
I recommend looking at BuddyPress. I think that has some of the community/profile aspects you are looking for.
I recommend looking at BuddyPress. I think that has some of the community/profile aspects you are looking for.
This is an old question, but might be very much relevant still today so I thought I would drop a piece of code I developed over the years. It’s basically as close as you can get to customizing classes on every element of a menu in WordPress without developing a custom Nav Walker. This is … Read more
There is no right answer to this. You need to use the capability or capabilities that allow the users you want to have access to have access and prevent the users you don’t want to have access from having access. I would tend to create a capability and/or role in this kind of circumstance, but … Read more
You can target the location like this: function wpa_filter_nav_menu_objects( $items, $args ){ if( $args->theme_location === ‘primary’ ){ foreach( $items as $item ){ if( strtolower( $item->title ) === ‘sample page’ ){ $item->title = $item->title . ‘(10)’; } } } return $items; } add_filter( ‘wp_nav_menu_objects’, ‘wpa_filter_nav_menu_objects’, 10, 2 ); You can also try $args->menu_id if you use … Read more
I am not sure this a WordPress question. It is really more just bad PHP but since that is a filter, in the spirit of fostering good will… Your function is returning a variable-name function that doesn’t exist, and none of your operations are saved at all. You are processing the string but you aren’t … Read more
i think there is an error – <img src=”https://wordpress.stackexchange.com/questions/105525/<?php echo”http://s.wordpress.com/mshots/v1/’.urlencode(the_field(‘website’); ‘).’?w=200′ ?>” /> it should be <img src=”https://wordpress.stackexchange.com/questions/105525/<?php echo”http://s.wordpress.com/mshots/v1/’.urlencode(the_field(‘website’).’?w=200′ ?>” alt=”” /> And if this not work. I think you use the_field(‘website’) function which actually not return result you can try this code. <img src=”https://wordpress.stackexchange.com/questions/105525/<?php echo”http://s.wordpress.com/mshots/v1/’.urlencode(get_the_field(‘website’).’?w=200′ ?>” alt=”” />
Theme options: Display ID of page options
I solved this by keeping my three separate queries and building a complex system to handle paging manually. It’s not ideal, but I really saw no better way to do it.
Pagination is not working, how to trace it properly?
I am going to assume you’ve got blog.php?page=2 working since you stated that’s what you wanted. It seems like you might have to pull off a lot of magic to hide /blog/ from your users. Not sure why you want that, so I’m going to ignore that and just give you a solution that might … Read more