ohio_is_for_saraperos
Forum Replies Created
-
Forum: Plugins
In reply to: [teachPress] Is Pagination possible?Perfect! Thank you!
https://cannabiblia.org/tests/ <– here is where I have the plugin deployed.
I updated the Mendeley Plugin through my WordPress dashboard but it still only displays 992 documents. Would you mind taking a look to confirm?
Thank you!
I thought all the resources in the group were public.
Group ID = 3913021
From the Mendeley API documentation:
“Public resources calls are based on the IP of the host and are limited to 150 requests per hour…User specific resources are not rate limited.”Could it be that only 992 resources in the group are truly public?
Forum: Fixing WordPress
In reply to: Need help passing user input to shortcodeFor those in the future with the same problem:
I had to replace the
"filter="keyword=$input"
with
"keyword="<?php echo $input; ?>""
<code> <form action="" method="post"> <input name="input" value="" /> <input type="submit" value="Keyword Search" /> </form> <?php $input = $_POST["input"]; $input = strtolower($input); if (strlen($input) > 0) { echo do_shortcode('[mendeley type="groups" id="3913021" groupby="year" filter="keyword="<?php echo $input; ?>""]'); } ?> </code>
Forum: Fixing WordPress
In reply to: Need help passing user input to shortcodeThat was VERY helpful! I was able to solve the problem after viewing the above link.
Thank you!
Forum: Fixing WordPress
In reply to: Need help passing user input to shortcodeI feel foolish for leaving those out. I’ve got all the proper marks in place and I still cannot get the job done.
At last the errors have stopped but I still cannot get the shortcode to execute with the input after it is submitted.
<code> <form action="" method="get"> <input name="input" value="Keyword Search" /> <input type="submit" value="Submit" /> </form> <?php $input = $_GET['input']; if (strlen($input) > 0) { echo do_shortcode('[mendeley type="groups" id="3913021" groupby="year" filter="keyword=$input"]'); } ?> </code>
Forum: Fixing WordPress
In reply to: Need help passing user input to shortcode<?php if (strlen($_GET['input'])>0) { echo do_shortcode("[mendeley type="groups" id="3913021" groupby="year" filter="keyword=.$_GET['input']"]") } else {echo "Sorry, try again."} ?> <form action="" method="get"> <input name="input" value="Keyword Search" /> <input type="submit" value="Submit" /> </form>
That’s what I’ve got so far and the page displays:
Parse error: syntax error, unexpected T_STRING in /home2/cannabib/public_html/wp-content/plugins/wp-exec-php/wp-exec-php.php(652) : eval()’d code on line 9
Forum: Fixing WordPress
In reply to: Need help passing user input to shortcodeThanks, but I don’t see how Query Wrangler can help me at all.
Forum: Fixing WordPress
In reply to: Need help passing user input to shortcodeIs it even possible?
I’ve tried the _GET form and it just spat errors out at me.
I assumed I could get user input from the search form and set it as a variable and give the variable in place of “xxx” but that was a swing and miss too.