how to add text to posts from tags

There is no plugin for that… at least one plugin 🙂 Create custom fileds for your custom text. Install ACF plugin (advanced custom fields) from wordpress.org. Now… create a field group with ACF and then create custom fileds inside that group for your custom text 1 and custom text 2. (Don’t forget to assign field … Read more

Why is a category/ tag name prefixed to title of every page?

I’ve found the cause. All in one SEO Pack plugin 1.6.14.5 is guilty (perhaps it’s not guilty by itself but also due to the multisite setup of my site and other plugins I’ve just installed conflicting it). Disabling the plugin resolve the problem immediately. I’m upgrading it and will use an alternative if it doesn’t … Read more

Which filter affects the ‘entry-title’ post class

The filter that allows you to tweak the title value is [wp_title][1]. As mentioned by the commenters, the entry-title is a class pertaining to your theme. If you need to set a class according to a certain value, try something like this in your template file: <h1 class=”<?php echo ($in_category_a) ? ‘align-left’: ”; ?>”><?php the_title();?></h1>

Custom Postype specific changes in admin panel

A filter always needs to return something. So in the second example you should try return $title; after the if statement so it doesn’t break other posts. add_filter( ‘sanitize_title’, ‘my_custome_slug’ ); function my_custome_slug( $title ) { return ( ‘customposttype’ === $GLOBALS[‘post’]->post_type ) ? str_replace( ‘*’, ‘-‘, $title ) : $title; } I’m not completely sure … Read more

Enqueue and Dequeue from admin bar nodes

From what I understand from your question, your best course of action is to assign the node to a WordPress callback function using built-in AJAX. If you don’t know what I’m talking about, you should familiarize yourself with using AJAX in WordPress in the Codex. However, here is a basic overview of steps: Add a … Read more

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