Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author phoenixMagoo

    (@phoenixmagoo)

    Hey! That’s actually the way to do it, BUT I removed that line of code with the last update since so many people have started using meta fields. You can add it back in if you want and change it from:

    if( has_shortcode( $post->post_content, 'gallery') ) {

    to

    if( is_page(YOUR PAGE ID) ) {

    Just change YOUR PAGE ID to correct ID.

    If you need more help than that, let me know. I can probably whip up a custom build for you, but it wouldn’t be until the weekend.

    Thanks!

    Alex333

    (@alex333)

    Hi!

    Could you explain, which code should I insert in three-dot-nine.php in order to exclude a page.

    Thanks!

    Plugin Author phoenixMagoo

    (@phoenixmagoo)

    Sure! To exclude a page:

    if( has_shortcode( $post->post_content, 'gallery') ) {

    to

    if( !is_page(YOUR PAGE ID) ) {

    If you need more help than that, let me know. I can probably whip up a custom gist for you today.

    Thanks!

    Alex333

    (@alex333)

    Hi Phoenix!

    I can’t find “if( has_shortcode( $post->post_content, ‘gallery’) ) {” in three-dot-nine.php file..

    Plugin Author phoenixMagoo

    (@phoenixmagoo)

    Here is a gist I made for you. You need to change YOURPAGEIDHERE to the correct ID for the excluded page.

    Let me know how it works.

    Good luck!

    Alex333

    (@alex333)

    Yes, it works!
    And is it possible to add two or more IDs?

    Plugin Author phoenixMagoo

    (@phoenixmagoo)

    I updated the gist. just add more comma separated page IDs.

    Thanks!

    Alex333

    (@alex333)

    Thanks a lot and have a nice day!!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Exclude only a page’ is closed to new replies.