Viewing 11 replies - 16 through 26 (of 26 total)
  • Thread Starter javadth

    (@javadth)

    if i want to skip 2 id

    what should i do ?

    like pages 352 and 464 i dont want to show table in this pages

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    just extend the code to e.g.

    <?php
    if ( ! is_page( array( 3503, 352, 464 ) ) ) {
      tablepress_print_table( array(
        'id' => '2',
      ) );
    }
    ?>

    Regards,
    Tobias

    Thread Starter javadth

    (@javadth)

    is this code works for post skip or just for page skipping ?

    <?php
    if ( ! is_page( array( 3503, 352, 464 ) ) ) {
      tablepress_print_table( array(
        'id' => '2',
      ) );
    }
    ?>
    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    this is just for page skipping. If you want it for both, it should be enough to replace is_page( with is_singular(.

    Regards,
    Tobias

    Thread Starter javadth

    (@javadth)

    could u give me all completed code ?

    i dont know nothing about codes

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    something like this:

    <?php
    if ( ! is_singular( array( 3503, 352, 464 ) ) ) {
      tablepress_print_table( array(
        'id' => '2',
      ) );
    }
    ?>

    Regards,
    Tobias

    Thread Starter javadth

    (@javadth)

    i put it

    <?php
    if ( ! is_singular( array( 2736, 2728, 11, 2850, 2827, 2777, ) ) ) {
      tablepress_print_table( array(
        'id' => '6',
      ) );
    }
    ?>

    but it shows table for pages

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    can you then please summarize again where you don’t want to show the table 6 (i.e. a separate list of post and page IDs)?

    Regards,
    Tobias

    Thread Starter javadth

    (@javadth)

    i want to skip table showing in this page and posts

    this is about pages and posts too

    2736, 2728, 11, 2850, 2827, 2777

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    okay, another try:

    <?php
    if ( ! is_page( array( ... ) ) && ! is_single( array( ... ) ) ) {
      tablepress_print_table( array(
        'id' => '6',
      ) );
    }
    ?>

    Please fill the is_page( ... ) with the IDs of the pages, and fill the is_single( ... ) with the IDs of the posts, just like above.

    Regards,
    Tobias

    Thread Starter javadth

    (@javadth)

    hi again

    if i want to disable show table in page and posts ( show in archvies and categories and tags )

    what should i do ?

Viewing 11 replies - 16 through 26 (of 26 total)
  • The topic ‘problem in putting in single.php in jarida’ is closed to new replies.