• Resolved sunrader

    (@sunrader)


    Seems like a great plugin. I have it working for a single post using a tag to identify it, but I really want to just use single post IDs. I must be missing something. I’m inputting the number of the post ID only, eg 335,, as revealed when I edit a post and as I usually identify posts for widget logic, etc. but that does not work. The widget reveals all the posts, seemingly defaulting to all? What exactly should the post ID box include for one post? What should it look like?

    https://wordpress.org/plugins/posts-in-sidebar/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Aldo Latino

    (@aldolat)

    The “Get these posts exactly” field should contain only the exact IDs you want to show, for example:

    480,15,331

    for 3 posts, and:

    15

    for one post. In case you want to show multiple posts, make sure that the “Display this number of posts” field contains a number greater than or equal to the number of IDs you want to show.

    If your sidebar shows different posts, there is something (a plugin or the current theme) that interferes with Posts in Sidebar plugin.

    Let me know, please.

    Thread Starter sunrader

    (@sunrader)

    Then something is interfering because this definitely doesn’t work for me. I put in two IDs and tell it to display 2 posts and I get a lovely display of 5 posts. Which is odd, because it doesn’t even appear to be the default since if I put nothing in, I get a much longer list (maybe the default number my post page is set to?). The tags work as expected, but the IDs don’t. I have the latest version of WP and am using the GeneratePress theme. There are a number of plugins, but I haven’t taken the time to test which might be interfering. If it would help you out, I’ll do that when I get a chance. I do think it’s a great plugin.

    Plugin Author Aldo Latino

    (@aldolat)

    Could you tell me the exact plugins you have active in your site? I’ll try to recreate your current environment in my test space.

    Thread Starter sunrader

    (@sunrader)

    I’ve cloned the site that is having trouble with PIS onto a domain I’m not using so that you can look at it. (LOGIN is in your gmail.)

    I did this because I tried a clean install of the theme and then adding one by one the plugins and the custom css and still could not duplicate the error, but you can see that the clone has the same problem with Post IDs. Meanwhile, I am able to use the tags with no problem.

    I’ve also styled the pis-arrow to match my site and to use Font Awesome and others may be interested in this, so here’s how I did it. I’m sure there’s a more elegant way, but it worked.

    .pis-arrow {display:none !important;}
    .pis-more:after {
    font-family: ‘FontAwesome’;
    font-size: 17px;
    color: #F2510C;
    margin:0 0 0 -2px;
    content: ‘\f0da’ !important;}

    Plugin Author Aldo Latino

    (@aldolat)

    Sunrader,
    the “problem” was to activate the option “Ignore sticky posts status”.

    You have currently three sticky posts that appear before any other post, so if you want to show the post with ID 355, the plugin will show these sequence instead:

    sticky post 1
    sticky post 2
    sticky post 3
    Post with ID 355
    … and any other post.

    Let me know, please.

    Thread Starter sunrader

    (@sunrader)

    Brilliant! Thanks. I think I assumed that the “Ignore sticky posts status” would only apply to the ones I was choosing. I would want the post to be displayed or not regardless of it’s sticky status. I can see how that would be wrong, but the instruction is not really intuitive. You might word it
    “All sticky posts will be displayed unless…” or something like that.
    In any case, awesome plugin. Very useful. Thank you.

    Plugin Author Aldo Latino

    (@aldolat)

    I’ll write it better in the next version, thanks for the suggestion.

    Bye!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Post IDs don't seem to work’ is closed to new replies.