Hi just baught it i wa using acf for years and decides to start using toolset because of the wide possiablities
its a bit hard for me
1- i can make the views work im using ultimatum frame work, when acitvating the view plugin the content disapers
do i need to do smothing
bascially i think that when i will fix thati will progress ith learning toolset capbilities and adapt them to my use
tnx
hi look im trying to figure out some stuff
right now what im stuck i have a repeator group which called
slides inside i have slidepic(image) and title
i want to display a gallery filed from the repeator
i read this https://toolset.com/forums/topic/get-id-of-repeater-image-field-insted-of-url/
but it doesnt work im trying to put this codein my functions
function prefix_get_img_ids($atts) {
global $post;
$images = (array) get_post_meta($post->ID, 'slides', false); // cast to array in case there is only one item
$ids = array();
global $wpdb;
foreach($images as $img) {
$query = "SELECT ID FROM {$wpdb->posts} WHERE guid='$img'";
$id = $wpdb->get_var($query);
$ids[] = $id;
}
not good i need to genrate gallery shortcode
pulling the images in repeator group field
[gallery ids="x,y,z"]
how can i do it
another questions
im using revolution slider wordpress gallery addon
i need to add media custom filed which will be in each repeator filed
and will be assigned to each picture attachment filed
can you guide me?
how can i make a multi step front end form?
is there a way to make a site whic user can select package kets say 1 ost 5 post and unimtied
each packege has a price after paying you can add umber of post dipending on your package?
hi doesnt do nothing
what is wrong
i dont know if i mentions that the filed are in custom post type "woosee-slide"
mybe somthing is need tom be changed in the code
tnx
<?php
/*
* Simple Child Theme generated by Ultimatum Framework
*/
function prefix_get_img_ids($atts) {
global $post;
$images = (array) get_post_meta($post->ID, 'wpcf-slides', false); // cast to array in case there is only one item
$ids = array();
global $wpdb;
foreach($images as $img) {
$query = "SELECT ID FROM {$wpdb->posts} WHERE guid='$img'";
$id = $wpdb->get_var($query);
$ids[] = $id;
}
Hi, Shane is out this week on holiday and I will be looking over his tickets. [gallery ids="x,y,z"]
how can i do it
The code here is not written for Repeatable Field Groups, it is written for repeating fields. I can help you change it. If you want to produce a comma-separated list of IDs from a repeatable field group (RFG), you must use a View.
- Create a new View of this RFG. Choose "Full custom display" in the View popup.
- Add a Post Relationship Query Filter where the parent is set by the current post or page.
- Click "Loop Wizard" and choose "List with separators" and insert the custom image field shortcode.
- After the loop code is generated, add the output="raw" attribute to each image field shortcode.
- Check "Disable the wrapping div around the View" below the loop editor.
- Delete all the code between wpv-no-items-found tags.
- The loop will look like this:
sorry but i cant make it work
i dont see all the stuff you wrote like
query filter which has parent
please can you look maybe
here is a single page doesnt do nothing hidden link
you habe my login details
thanks
- Create a new View of this RFG. Choose "Full custom display" in the View popup.
Go to wp-admin, then Toolset > Views > Add New. In the popup, choose "Full custom display mode". See step-1.png. Then select your repeatable field group (RFG) in the Content Selection area in the View editor.
- Add a Post Relationship Query Filter where the parent is set by the current post or page.
If you cannot see the Query Filter panel, scroll to the top right corner and click "Screen Options". You can activate the Query Filter panel here. Then click "Add a Filter" and select "post relationship or repeatable field group owner". See step-2.png.
Then choose "The post where this View is shown" and choose your RFG in the select field. See step-3.png