[Resolved] elements page id or better parent page

Home Forums Support [Resolved] elements page id or better parent page

Home Forums Support elements page id or better parent page

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1194740
    Factory Prime

    Hello
    I have seen that in elemnts there is only the display of the name of the page and not of the parent of the page.
    I managed by editing the file: class-metabox.php
    see the page id.

    On line 1883

    $ title = (”! = $ post-> post_title)? esc_attr ($ post-> post_title). “>”. $ post-> ID: $ post_type. ‘-‘. $ Post-> ID;

    and to the 1920 line

    ‘name’ => esc_attr ($ term-> name). “>”. $ TERM-> term_id,

    My problem is that I have many pages with the same name but the parent is different.
    As I did I can understand what page it is but it would be better to see the name of the parent, but I can’t.

    Could you please update the plugin in the next release so that you see the parent of the page)

    #1195044
    Tom
    Lead Developer
    Lead Developer

    Hi there,

    I wonder if something like this would work for you?:

    add_filter( 'generate_elements_show_object_ids', '__return_true' );

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