Suneet
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: edit built-in custom fields valueshould i sent u all the details regarding these custom fields
Forum: Fixing WordPress
In reply to: edit built-in custom fields valuefrom my search i found that contents shown in the site are stored in this custom field “mfn-page-items-seo” and contents mentioned in the value part are shown only when this custom field “mfn-page-items” is added along with a long encrypted string mentioned in the value. What does this “mfn-page-items” means and what does this long encrypted is?
can u pls help ?
Forum: Fixing WordPress
In reply to: edit built-in custom fields valueCan I just clarify how you are checking the custom field value after you have selected “Update”?
I am purely new to this custom field.
Actually my client wants me to change some text of a page.
For this, I am opening a page, there at the bottom of the page “Custom Fields” are there.
In the name this is mentioned “mfn-page-items-seo” and
in the value “CONTENT” is thereSorry I am not able to explain you properly. I have a snapshot showing my problem. Pls let me know how can i show this
Forum: Fixing WordPress
In reply to: edit built-in custom fields valueyeah sure,
I am using WordPress 4.2.5 in which there is a built-in feature “Custom Fields”. There is a custom field named as “mfn-page-items-seo”. I want to edit the contents present in the value of this field. How will I change that. I have tried it but when I click the update button, changes are not made accordingly.
Please help ?
can anybody please help? For the last one week I am stuck in this problem.
Forum: Fixing WordPress
In reply to: how to pick value of a textbox in a php variableshowing this error :
POST http://localhost/website/ordMcheck.php 404 (Not Found)code of ordMcheck.php :
<?php var_dump($_POST); ?> <?php ini_set('display_errors', 1); ?> <?php session_Start(); ?> <?php include ("dbcon.php"); include ("included_functions.php"); echo (imgpath); ?>Pls guide where I am wrong ??
Forum: Fixing WordPress
In reply to: how to pick value of a textbox in a php variableHere actually I don’t want other users to see what values or filename is being passed. so that’s why i have redirected to “ordMcheck.php” instead of “url”
Forum: Fixing WordPress
In reply to: how to pick value of a textbox in a php variableis this the correct way :
$("#tabstatusdisp tr").click(function(){ var td = $(selectedRow).children('td'); for (var i = 4; i < td.length; ++i) { $('#txtqty').val(td[4].innerText); $('#txtrate').val(td[5].innerText); $('#oldcbval').val(td[7].innerText); $('#imgpath').val(td[8].innerText); var inpvar = td[8].innerText; //data = { imgpath:inpvar }; } data = { imgpath:inpvar }; $.ajax({ type: 'POST', url: 'ordMcheck.php', data: data, cache: false, success: function(data) { console.log(data) } }); });Please guide ?
Forum: Fixing WordPress
In reply to: how to pick value of a textbox in a php variableyeah, Sorry you are right, that’s not ajax that jquery.
Forum: Fixing WordPress
In reply to: how to pick value of a textbox in a php variable$(document).ready(function() { $("#tabstatusdisp tr").click(function(){ <-- Ajax Function var td = $(selectedRow).children('td'); for (var i = 4; i < td.length; ++i) { $('#txtqty').val(td[4].innerText); $('#txtrate').val(td[5].innerText); $('#oldcbval').val(td[7].innerText); //$('#imgpath').val(td[8].innerText); //var inpvar = $('#imgpath').attr("value"); $('#showpic').html(td[8].innerText); } }); });ok if I change the syntax to “$(‘#showpic’).html(td[8].innerText);”, then even I have to do the same thing ??. But here I am already using ajax
Forum: Fixing WordPress
In reply to: how to pick value of a textbox in a php variableI have gone through this but still not clear what needs to be done. If possible can you please provide me a small example that will help me understand how it is done.
Forum: Fixing WordPress
In reply to: how to pick value of a textbox in a php variablesorry i forgot to mention here is the complete code :
$(document).ready(function() { $("#tabstatusdisp tr").click(function(){ var td = $(selectedRow).children('td'); for (var i = 4; i < td.length; ++i) { $('#txtqty').val(td[4].innerText); $('#txtrate').val(td[5].innerText); $('#oldcbval').val(td[7].innerText); $('#imgpath').val(td[8].innerText); var inpvar = $('#imgpath').attr("value"); } }); });Forum: Fixing WordPress
In reply to: how to pick value of a textbox in a php variablehi, thanks for replying. Let me explain you the whole thing :
Value in the textbox is coming using a jquery ( clicking a row of the table ) and then extracting values of that row in the respective textboxes outside the table. Let me give you the code :$("#tabstatusdisp tr").click(function(){ var td = $(selectedRow).children('td'); for (var i = 4; i < td.length; ++i) { $('#txtqty').val(td[4].innerText); $('#txtrate').val(td[5].innerText); $('#oldcbval').val(td[7].innerText); $('#imgpath').val(td[8].innerText); } });As you can see, I want to pick the value of “imgpath” and pass it into a php variable “inpvar” which will then be used within img tag.
For your convenience code is shown below :<?php $ipth = inpvar; $fpth = "http://localhost/website/wp-content/themes/website/".$ipth; ?>Image tag :
<div class="lbx1"> <?php echo "<img src='$fpth' alt='' style='width:230px; height:200px' />"; ?> </div> <div class="c2r1"> <input id="imgpath" name="imgpath" type="text" value='' class="imgsty" /> </div>Please help ??
Forum: Fixing WordPress
In reply to: how to call secondary menu from a customized pagewhen the admin successfully logins, the page is redirected to “adm-main.php” which intuns calls the header file “header-adm.php”.
Please see the above code
Forum: Fixing WordPress
In reply to: how to call secondary menu from a customized pageany help or guidance from your side…..