Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I’m not exactly sure what you mean. After all, you have to include the Shortcode somewhere in a page or post, so you would have to hide that, or for example mark it as “private” or “password-protected”.

    To put them in a search box or drop-down, you could for example use a JavaScript solution, that shows/hides HTML <div> elements accordingly. Unfortunately, I don’t have readily usable code for this, sorry ??

    Regards,
    Tobias

    Thread Starter charlietech

    (@charlietech)

    Thanks for responding,
    I just wanted to make sure that I could hide it someway. Im new to this stuff.

    could you check this out for me https://www.choosemyplate.gov/SuperTracker/default.aspx

    Now the food-a-pedia what Im trying to have something similar, how would I do something like this with reloaded?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    well, it depends on what you mean by “hiding”. Just hidden/invisible to the user, or not accessible at all?

    About what you are trying to do: This is not really something that you do with WP-Table Reloaded. You will find a solution to do this with WordPress pages or posts. On these pages or posts, you can then embed the WP-Table Reloaded Shortcode.
    So, don’t think in terms of hiding tables, but think in terms of hiding WordPress posts (which can have a table Shortcode in them).
    Unfortunately, I’m not really an expert in creating such things in WordPress, as this is heavily dealing with theme programming and deeper internals, so I won’t be able to help ?? Sorry.

    Regards,
    Tobias

    Thread Starter charlietech

    (@charlietech)

    Hey thanks,

    Yea i put the table in a page and it showed up and allow me to search the items pretty much like the link I sent to you. but the table is shown when Im doing the search which I dont want to be visible. So your telling me to ask the question ” how to hide code in post or page” instead of hide table?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for the clarification. Yes, then you need code to hide post content. You could for example do this with JavaScript, with things like a slider or “accordion”, e.g. like what I use on my website for the documentation, which is described here: https://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/

    Regards,
    Tobias

    Thread Starter charlietech

    (@charlietech)

    Hey there,

    Thanks for the help, really appreciate it. Ok let me make sure Im clear with the article, Im going to make a div “slide” and put the content that I want hidden in there. then use the jquery codes and put put them in the page.js?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    yes, that’s what is described in the article. And a click on the heading will then reveal that content.

    Note that there are readily usable plugins for this functionality as well, which would save you the necessary coding time. (I don’t have names though ?? )

    Regards,
    Tobias

    Thread Starter charlietech

    (@charlietech)

    Hey there,

    when I hide the tables, I cant access them in the database to have them show up in the search box when Im searching for an item, please help. I just need to know where I put the tables so I can search them in the search box, I know this can t be this hard but Im new to this so I dont know.

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    I don’t really understand what you mean… The WordPress search will search through all tables whose Shortcode is included in a published post or page, and it does not matter whether you are using that accordion JavaScript to hide the table or not…

    Regards,
    Tobias

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: WP-Table Reloaded] Hiding tables on the front end’ is closed to new replies.