Advanced location rules missing Post ID?

Support MB Include Exclude Advanced location rules missing Post ID?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #32014
    BellulBellul
    Participant

    I have created a Field Group which I wan't only to show up on two Pages. But when I try to create a rule in Edit Field Group > Settings > Advanced location rules I can't select "Post ID" (there is no such option). If I select "Post", then I can only select a page among 10 pages in the drop down, and I can't find the page I am looking for (and the page I am looking for has the title "Försök", which is the same title as another page with a different slug).

    Here https://metabox.io/plugins/meta-box-include-exclude/ it seems as if I should ber able to select "Post ID". What am I missing?

    #32019
    Long NguyenLong Nguyen
    Moderator

    Hi,

    In the builder, we support showing the post title instead of post ID to be easier to select without remembering the post ID. If you click on the button Get PHP Code, you can see post ID as well.

    If you want to use other parameters to include/exclude the meta box, please use the code and following the documentation https://docs.metabox.io/extensions/meta-box-include-exclude/

    #32023
    BellulBellul
    Participant

    Thanks! But why does the Select box for Posts only show 10 pages (the first 10 in A-Z order)? I have many more pages, and I can't select the post a want! And I can't search for other pages.

    #32035
    Long NguyenLong Nguyen
    Moderator

    Hi,

    For the optimization of the builder, we only support showing 10 items to select. You can type the post title to search and select.

    #32040
    BellulBellul
    Participant

    Thanks! Yes, I can see now that searching works. The reason I missed it was because the Page title I was searching for didn't look as expected. Instead of the title "Försök", your select box showed the title as "<mark class='searchwp-highlight'>Försök</mark>". Yes I use the plugin SearchWP. But if I go to Pages, the title shows up as "Försök" and in DB the field "post_title" in table "wp_posts" is also "Försök".

    So, why is the <mark>-code showing up in your Select box?

    #32049
    Long NguyenLong Nguyen
    Moderator

    Hi,

    The code <mark> could be added by the SearchWP plugin, it is not a standard code of the Builder. You can try to deactivate SearchWP and re-check it.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.