Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter viracocha50

    (@viracocha50)

    I mistakenly wrote.
    I write the correct message:

    I have to pass the value of a category to code to upload an image.
    I created a custom field user_submittet_category = 9 (value to pass).
    In the code below I have ruled out the line 108 and added the 109.
    In this way, the parameter is not passed.
    If instead of get_the_ID() directly insert the number of the page ID that is
    $ category = get_post_meta (405, ‘user_submitted_category’, true);
    the parameter is transferred and everything works perfectly.

Viewing 1 replies (of 1 total)