Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #742437

    Hello,

    I am creating a search page. I search through custom posttypes and show the search results with help of relevanci

    At this point i am getting search results showing [avia_codeblock_placeholder uid=”0″] where the uid is different for each post.
    I tried to remove it with preg_replace but that is not working.

    I see a lot of other people with similar issues with avia_codeblock_placeholder but eacht with different solutions.
    I hope you can help me i am really stuck now.

    Best regards,

    Auke

    #743960

    Hey AukeJomm,

    Have you tried de-activating all active plugins except for Relevanssi and check if that helps?
    If you have and it did not, can you please create a temporary admin login and post it here privately with FTP logins so we can look into it?

    Best regards,
    Yigit

    #744044

    Yes all except Toolset Types and relevantssi.

    I have send you the login credentials.

    Thanks in advance

    AUke

    #744090

    Hi!

    Please take a look here

    what Ismael is saying and let us know if it covers you.

    Regards,
    Basilis

    #744108

    Thanks for your though Basilis,

    The case from Cesarvega en Ismael is not the same.
    There are also other cases but all seem not to apply or the solution is not working in my case.

    #744837

    Hello Yigit,

    I have send you login credentials in our latest post from 7 februari.
    I’m wondering if you have had the change to login and see what is happening.

    Looking forward to your respons.

    Best wishes,

    Auke.

    #747318

    Hi!

    I’m not sure where the string is coming from but you can remove it with the following snippet.

    function ava_custom_script_mod(){
    ?>
    <script>
    (function($){
    	function a() {
    		$('.template-search .post-entry').each(function() {
    			var paragraph = $(this).find('.entry-content p'),
    			    content = paragraph.text(),
    				replace = content.replace(/\[avia_codeblock_placeholder uid=[\W]+[0-9]+[\W]+\]/, '');
    				paragraph.text(replace);
    		});
    	}
    
        a();
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_mod');
    

    Regards,
    Ismael

    #747430

    Ismael, you Rock!!
    Thanks!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘[avia_codeblock_placeholder uid=] in search results’ is closed to new replies.