Support » Plugin: Add to All » Exlude or hide text on a single post

  • Resolved yolandal

    (@yolandal)


    Hi there, I’m using your Add to All plugin for a while now, and it works fine.
    I’m using the ‘Add HTML after content?’ option on the Content tab.

    But how can I exclude just one post to show my ‘add to all’ text?
    And what is the different with the same blox Add HTML after content? below this one?

    Thank you,
    Yolanda
    http://www.yory.nl

    The page I need help with: [log in to see the link]

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

    (@ajay)

    One is for displaying on all posts and the other is only for single posts.

    There isn’t a way to exclude displays on some posts, but it’s a good one that I can add into a future version

    Thank you for your quick respons. I’d like this fetature, so if you can implement it would be great.

    If I use the ‘single post’ option, where can I define the posts to use?

    Can I combine the options ‘all posts’ and ‘single post’? If yes, which one will overrule?

    Plugin Author Ajay

    (@ajay)

    They work in combination. Single posts means when you view the post. The other option is on all views e.g. when you’re viewing your homepage that is when the first option works (the non-single one)

    I’m sorry, I still don’t understand. If I want a text on a single post, how can I define which single post that will be?
    I have more than 100 posts. Now I’m using the option ‘All posts’, so it will show on all posts.
    But what if I want my repeating text on some posts, let’s say post ID 3, 7, 10?

    Plugin Author Ajay

    (@ajay)

    Hi

    Sorry. I should have been clearer. Single posts means the view of all single posts. You cannot limit it to only a few posts. The reason being is if you had only a few posts then you could edit the post and add it directly.

    You could also use a shortcode manager plugin if needed for this as well.

    Hi,
    There’s a way to do this:
    <div id="hello">Some text...</div>

    add to your css:
    /* === hide <div id=”hello”> for this Pages ID below === */
    .page-id-441 #hello {display: none;}
    .page-id-542 #hello {display: none;}
    .page-id-443 #hello {display: none;}

    You can find the ID of pages & Posts when you edit
    example: https://shop.mg-records.com/wp-admin/post.php?post=241&action=edit
    The number of the post is 241, the page id is page-id-241
    Hoping it helps 😉

    Big thanks Ajay D’Souza for your plugin Add to All!!

    • This reply was modified 1 year, 4 months ago by MickFrench.
    • This reply was modified 1 year, 4 months ago by MickFrench.
    Plugin Author Ajay

    (@ajay)

    @mickfrench, the code didn’t come through properly.

    The latest version has an exclude post IDs option on pages you don’t want to display the HTML

    Merci Ajay for the latest version! I’ve just found it with a new install of Add to all! It’s more simple!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Exlude or hide text on a single post’ is closed to new replies.