Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8255675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T01:36:27+00:00 2026-06-08T01:36:27+00:00

At my website I have clickable hidden meta tags like page views or Google

  • 0

At my website I have clickable hidden meta tags like page views or Google requests under every article.

This is the code I use:

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script>
<script type="text/javascript">

$(document).ready(function(){
         $(".slidingDiv").hide();
        $(".show_hide").show();
     $('.show_hide').click(function(){
    $(".slidingDiv").slideToggle();
    });
 });
 </script>

And this code for PHP:

<p class="postmetadata"><a href="javascript:;" class="show_hide">[Show/hide meta data]</a></p>
<div class="slidingDiv">
<p class="postmetadata">Aufrufe: <?php if(function_exists('the_views')) { the_views(); } ?> </p>
<p class="postmetadata"><?php if(function_exists('stt_terms_list')) echo stt_terms_list() ;?></p>
<p class="postmetadata"><?php if (function_exists('backlinks')) backlinks(); ?></p>
<br>
</div>

I use WordPress. The problem is, if I click on “Show/hide meta data” every article shows the meta data. I only want the meta data of the article I clicked. This is my website.

You have to click on the german “[Zeige/Verstecke Meta-Daten]”, which is equal to “[Show/hide meta data]”.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T01:36:28+00:00Added an answer on June 8, 2026 at 1:36 am

    Using jQuery method .next(), this will work right now:

    $('.show_hide').click(function(){
        $(this).next().slideToggle();
    });
    

    Using jQuery method .siblings(), this will work even if you rearrange the order of the elements:

    $('.show_hide').click(function(){
        $(this).siblings('.slidingDiv').slideToggle();
    });
    

    Using jQuery method .closest(), this works even if you rearrange the elements depths:

    $('.show_hide').click(function(){
        $(this).closest('.span-8').find('.slidingDiv').slideToggle();
    });
    

    Also, for jQuery/Prototype conflicts, see this: Prototype and jQuery together?

    The simplest solution is to create a temporary context:

    (function($){
        $('.show_hide').click(function(){
            $(this).siblings('.slidingDiv').slideToggle();
        });
    }(jQuery));
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have my Joomla website, and in an article i have this code: <a
we are running a click-to-call service, my idea is basically like this: website have
i have website of application which sells applications online.on the home page i want
I have this function in my website. function autolink($content) { $pattern = />>[0-9]/i ;
In the header of my website I have an image. I want this image
I have a Website something like twitter who are update per 30 seconds or
I'm trying to have my website have a similar functionality to this one: [removed]
I have made this website www(.)ionisedmesh(.)com and a latest news box on the top
Having similar problem as others have had on this website where it shows only
What I want to do is to embed music files within a website (Have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.