max1024
Forum Replies Created
-
On page:
[pods name=”course” id=1 template=”ListCourseDetails”]template:
<div class=”row”>
<div class=”col-6″>Total hrs:</div>
<div class=”col-6″> {@ID,calculateHours}</div>
</div>Function:
function calculateHours($id) {
$course = pods(‘course’, $id);
if ($course->exists()) {
return $course->filed(‘hours’)+$course->filed(‘conshours’)+$course->filed(‘examhours’)+$course->filed(‘projecthours’);
} else return $id;
}- This reply was modified 5 years, 6 months ago by max1024.
shortcode
Hi
sure, im using it with pods plugin
function is in functions.php
So function is called ok, but ID comes emptyForum: Plugins
In reply to: [Pods - Custom Content Types and Fields] External DatabaseHello
Ive played with FEDERATE (CONNECT actually)
got some results
But I feel that place could be uncomfortable to discuss it
any suggestions?
Thank youForum: Plugins
In reply to: [Pods - Custom Content Types and Fields] External DatabaseHello
looks like it is not so easy
when I go with first approach Ive got
WordPress database error: [Table 'wordpress_database.my_storage.wps_pods_test' doesn't exist]
Looks like a WP databasename was added before my custom database name as well
brief look through code doesnt ring the bellMaxim
Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] External DatabaseHi
ok I will try both ways and post the results hereForum: Plugins
In reply to: [Pods - Custom Content Types and Fields] External DatabaseThanks for reply
What about FEDERATE tables? Will it works with Pods?Forum: Plugins
In reply to: [Pods - Custom Content Types and Fields] External DatabaseHi
Thank you for reply, but I dont get an idea.
Say, my wordpress database is located on localhost, but my pods database is located somwhere else (somehost:port)
How shell I configure the PODs, to let them walk into another MySQL instance?
I am not so strong in WP…Thank you
- This reply was modified 7 years, 5 months ago by max1024.