Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter deckard1976

    (@deckard1976)

    Seems WP search form related or theme related problem, since I have made my own php file with :

    $query->query_vars['s'] = 'tourist';
    $query->query_vars['posts_per_page'] = 50;
    relevanssi_do_query($query);
    foreach ($query->posts as $r_post) {
    
    		$link = get_permalink($r_post->ID);
    		$title = get_the_title($r_post->ID);
    
    		echo $title;
    
    		}

    and I can get results. So I need to replace the original search query of WP with the “relevanssi_do_query” one I think..

    Thread Starter deckard1976

    (@deckard1976)

    I were able to make it work within the frontend editor by adding this line into the main php file :

    add_action( 'wp_footer', array( WP_Prism_Syntax_Highlighter::get_instance(), 'add_admin_script' ) );

    It works beautifuly into bbpress forum. In post editor the code dont show properly, it seems that WP format the content and remove the
    html tags. Any help would be greatly appreciated. Thanks a lot.

Viewing 2 replies - 1 through 2 (of 2 total)