max143
Forum Replies Created
-
Thank you. It helps!
And what is the name of this main plugin file?
And one more question, from what file returns all data? How I can find this stranger$_GET['submission-error']
? In<form action="">
there is empty action, and I dont know where it is processing.oh, ok, now I understand you. topic closed
maybe, but I think there is must be form template also in a new version?
I am not sure, that it is default code, I am only edit site, not developing from the beginning, but I find this code in
views/submission-form.php
. And I think that$_GET['submission-error']
is from USP, not user variable.In form template there is such code
<?php if (isset($_GET['submission-error']) && $_GET['submission-error'] == '1') { ?>
When form send$_GET['submission-error'] = 1
?thank you, that what I need.
P.S.
Maybe I am wrong, but I think, your plugin does not send right names of custom fields or some thing else. It does not work with functionget_post_meta()
;ok, I need custom field
user_submit_name
, it modified by plugin? how I can get name of modified name of custom field?It will be good, if you can tell me, why this plugin does not send meta fields in the same view/array/variables –
get_post_meta($post_ID,'user_submit_name',true)
as it do it system of WordPressI want to clarify – my code working with system adding post(add from admin panel), there allright. But problems only in adding posts from USP.
look “Custom fileds”, there are https://prntscr.com/iwrgly
user_submit_name
and I change code
$username = get_post_meta($post_ID,'user_submit_name',true);
it still emptyokay. and what about meta fields, I tried such code
$username = get_post_meta($post_ID,'user-submitted-name',true);
whereinput name="user-submitted-name"
https://prntscr.com/iwr5pg
but it is empty it functionI found some problem. In my function I have check
if ($_POST["post_type"] == "reviews"){ //code }
and I think
$_POST
orpost_type
does not send by USP. Is it true? How I can checkpost_type
in my way?Thank You for answer. But I still have a problem. As I write, hook
save_post
working without plugin USP, but when post added by plugin USP(form), hooksave_post
does not working. I can conclude that problem in plugin USP.Forum: Developing with WordPress
In reply to: Post thumbnails qualityOk, thank You