Hide post title when single post with specific category

Instead of !is_category(‘campaign-post’) I think it’s !in_category(‘campaign-post’) is_category() is used within Archives pages, when it’s in WP Query. Like your viewing a category archive page, and you’re asking: is this the category queried. in_category() (which uses has_category() which then uses has_term() which then uses is_object_in_term()) relates to single posts, asking: does this post have this … Read more

Automatically put a menu on every post

Without knowing where exactly you want to put this (all posts, certain categories, etc.) I will give you the way to do it across the board. First step is to go into functions.php and find the function where your menus are being defined. Inside that function add the following code: register_nav_menu( ‘dmca’, __( ‘DMCA’, ‘theme-slug’ … Read more

wordpress show category link instead of post link [closed]

in the loop-entry.php there is <h2><a href=”https://wordpress.stackexchange.com/questions/295028/<?php the_permalink(” ‘) ?>” title=”<?php the_title(); ?>”><?php the_title(); ?></a></h2> change above code to <h2><a href=”https://wordpress.stackexchange.com/questions/295028/<?php echo get_permalink( $post->ID ); ?>” title=”<?php the_title(); ?>”><?php the_title(); ?></a></h2> Done!

Notifications on WordPress Website [closed]

Try BuddyPress. It covers majority of your functionality. Or you can go with custom approach using Custom PHP script and AJAX with custom tables created in Database. Here is a link to such tutorial. https://www.cloudways.com/blog/real-time-php-notification-system/ EDIT : I don’t know what approach you are following. But considering you are using WordPress Post and Comments. Create … Read more

WP CF7 custom var

Make sure you’ve read the shortcode API. A shortcode must be a callback (i.e. a function), not a value. And add_shortcode only works for the shortcode name, not an attribute: dynamichidden is the name of the shortcode, and CF7_custom_prod_code is an attribute. You won’t be able to hook into it using add_shortcode( ‘CF7_custom_prod_code’ ). You … Read more