Archived topic
elements page id or better parent page
1 reply · Started by Factory Prime on March 14, 2020
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)
Hi there,
I wonder if something like this would work for you?:
add_filter( 'generate_elements_show_object_ids', '__return_true' );