Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Here is the code:
<?php if(function_exists('mk_slider')){mk_slider(427);} ?>
I need to put code
<?php the_field('slider_id'); ?>
instead of 427 in previous code, but it does not work, how shell i do it?
Help plz!
Try
<?php if(function_exists('mk_slider')){mk_slider(get_field('slider_id'));} ?>
^^^^^^^^^^^^^^^^^^^^^^
... and as a side note, now I need a shower. Dealing with wordpress code always leaves me feeling dirty/abused.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
Does php work in phonegap? I cannot find the answer.
I ask as javascript works for sure.
Thank you
Short answer no.
Insert Code here
You should really look at improving your knowledge of language types first. Php is server side based.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
Exist any way to know the source page that is calling the query and store it?
Are you looking for $_SERVER['PHP_SELF'] ?
Check also print_r($_SERVER) if something is more accurate for what you need
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I have one div so i want to repeat the same div three time when the someone open the page.
If anyone knows please help me out
You want to use foreach (but this can only be used with PHP, and not HTML directly)
<?php for($i=0;$i<10;i++): ?>
<div>your code</div>
<?php endfor; ?>
this will repeat 10 divs for you. save as .php file
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
What I'm trying is a php form validation from a separate file.(form.php & validate.php).
Is it possible?
Yes, you just have to include the scripts and you have access to functions inside of them. You really couldn't google this one?
include("validate.php"); //inside form.php
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
When i include a file in like 1/2/3/file.php and in the file i do <?php include ('../file2.php'); ?> it sends me to : 1/2/3/../file2.php
it should just send me to ../file2.php. It seems like it does not use the ../ . Also the file does exist.
try to use __DIR__
<?php include (__DIR__.'../file2.php'); ?>