If post type = forum then breadcrumbs Home > Forums

I managed to fix this by: <?php function the_breadcrumb() { global $post; $post_type = $post->post_type; echo ‘<ul id=”breadcrumbs”>’; if(get_post_type() == ‘forum’ OR get_post_type() == ‘topic’ OR get_post_type() == ‘reply’) { echo ‘<li><a href=”‘; echo get_option(‘home’); echo ‘”>’; echo ‘<i class=”ts-awesome-home” style=”font-size:14px;letter-spacing: 2px;”></i> Home’; echo ‘</a></li><li class=”separator”> / </li>’; echo ‘<a href=”https://link”>Forum</a>’; echo ‘ &nbsp;/&nbsp; ‘; … Read more

Add QuickTag in bbpress replies

SOLVED! I just put anther add_action to insert the javascript in the rest of the theme (and for bbpress too): add_action( ‘wp_print_footer_scripts’, ‘generico_quicktags’ ); The quicktags check in function already prevents wordpress to put the javascript in unwanted places!

Access methods in plugin template

Normally not (it depends on what part of the plugins code you want to use and how the plugin initializes itself in the context in which you want to do it), the main plugin files are loaded as part of the wordpress boot process and the convention is that they will load the other files … Read more

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