Create new Meta-Slider for each new post
-
Hi,
I think meta-slider is really great plugin and my issue might be more of a problem because I am new to wordpress php, css and java nevertheless I am stuck with this problem for weeks now so I hope someone can help me.
The task:
I would like to automatically create a new empty metaslider each time a new post is created. Later I want to automatically add the slider to the corresponding post, but at the moment I would just be glad if the creation part would work.
The problem:
I thought about calling the “create_slider” function in the single.php (only for testing reasons): with: <?php create_slider(); ?>
But I always get the error [Xampp setup]:
“Fatal error: Call to undefined function create_slider() in C:\path\single.php on line 1”My guess is that I need to somehow reference to the function file, but I have no clue about how to do that.
Best wishes,
Andreas
- The topic ‘Create new Meta-Slider for each new post’ is closed to new replies.