How can I remove page titles without removing the link in the navigation bar in twentyeleven?

You’ll need to remove the_title(); section from the following templates: content-aside.php content-featured.php content-gallery.php content-image.php content-intro.php content-link.php content-page.php content-quote.php content-single.php content-status.php content.php Open the files and look for this: <h2 class=”entry-title”> <a href=”https://wordpress.stackexchange.com/questions/33038/<?php the_permalink(); ?>” title=”<?php printf( esc_attr__( ‘Permalink to %s’, ‘twentyeleven’ ), the_title_attribute( ‘echo=0’ ) ); ?>” rel=”bookmark”> <?php the_title(); ?></a> </h2> The content will … Read more

How would I make a function to dynamically determine if user is logged to change navigation menu text?

I’m not really sure what you’re trying to achieve with the is_page parts – maybe I’m missing something – but what if you’d just write: if (is_user_logged_in()) { $my_account = “My Account”; echo ($my_account); } else { $login = “Login/Sign Up”; echo ($login); } return just returns the variables for use in your code, echo … Read more

How to add a shortcode to call a function

So you’re just looking for a simple shortcode that will call an existing function? The following will create the shortcode you’re looking for, but admittedly I haven’t tested it with the Cimy User Extra Fields plugin. Add this to functions.php and try it out: function shortcode_cimyFieldValue( $atts ) { global $current_user; $user_id = ( is_user_logged_in() … Read more

hook for dashboard show_user_profile

show_user_profile is the wrong hook to use. You should redirect before anything gets sent to the browser (eg. before headers are sent). Fortunately there are actions that happen much earlier: load-{$pagename} is the one you want. So you can hook into load-index.php and load-profile.php to throw people back to the front end. <?php add_action( ‘load-profile.php’, … Read more

Looking for Functions File that doesn’t Exist

As the error says you cannot redeclare a function. You need to open your child theme’s functions.php and remove the _verifyactivate_widgets() function from it. If you have copied the functions.php from the parent theme then most probably you would have to remove all the functions from the file unless any function in the parent theme … Read more

A better way to get stats

You’ve got one very large issue here – you’re using $_SESSION. WordPress, by default, doesn’t use session variables. So isset( $_SESSION[‘vsp_user’] ) will always return false because WP isn’t keeping track of things. There are some additional changes you’ll need to make and hooks you’ll need to tie in to in order to enable sessions … Read more