Support Forum ยป User Profile

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: โœ…"Post" Field Type #41499
    richard rowlesrichard rowles
    Participant

    Solution Found: Quite usefull maybe?

    Using "Adminify" I added this code to the footer

    1) It hides the title and slug for the post.
    2) it copies from the required field to the title input box.

    NB: I will add page name based if statment to only activate on the correct page.

    RESULT: "post select dropdown" now has the value of a field I need to display in the dropdown. ๐Ÿ™‚

    document.getElementById('post-body-content').style.height=0;
    document.getElementById('post-body-content').style.padding=0;
    document.getElementById('post-body-content').style.margin=0;

    document.getElementById('name').addEventListener('keyup', function (event) { document.getElementById('title').value = event.target.value});

    Best Rich

    in reply to: โœ…"Post" Field Type #41498
    richard rowlesrichard rowles
    Participant

    Thanks Peter, Is there a way with metabox or a component it works with to copy one field to another either before a new/edit submit button is pressed that way I could copy the "name" field to the CPT Title?

    Best
    Rich

    in reply to: โœ…"Post" Field Type #41484
    richard rowlesrichard rowles
    Participant

    Not at PC right now, but

    1) when you add a Field to a field group one option is to use the "Type" of "Post"
    2) then in the "Post Types" box I can add the post type that I want to be used.
    3) for "field type" I choose "select".

    So in this drop down I have a list of posts of the type i have choosen, which is absolutley correct.

    The issue is that it only displays the post titles in the select box. What I need to do is to have different field displayed in the box.

    I was thinking I might be able to use "query args" to specify which field and value I retrieve to display in the box but I can't get it to work.

    I this example I'm not using title at all. So from the CPT called "contact" I need the "name" field from that CPT to list in the box.

    Does that make sense?
    Thanks Rich.

Viewing 3 posts - 1 through 3 (of 3 total)