Quantcast
Channel: Toolset » All Posts
Viewing all 20145 articles
Browse latest View live

Reply To: [Assigned] (Wrongly) duplicate content in View Template since Views 1.2.3

$
0
0

I tried in your test website:
1) Deactivate other plugins and switch your theme to twentytwelve
2) create a test Property post:
http://stg.hms-spain.com/property/test-property/

It works as expected.

And I suspect there is a problem in your theme, could you enable debug mode?
http://wp-types.com/documentation/user-guides/debugging-types-and-views/


Parametric Search Issues with latest plugins and WordPress 6.2

$
0
0

I have set up a default installation of WordPress using Twenty12.
I have the latest plugins for Types and Views.
I am reasonably experienced.
I have created custom fields group using both checkboxes and select fields as a test.
I have created the parametric search using LIKE – CHAR – URL and entered the lowercase custom field in the right hand field.
I toggled ON all elements and used view as table.

In every instance, the default view is giving me a list of all the custom post entries and is NOT filtering on initial view. When I input any checkbox, select field or enter text search words into the search box, it works just fine like it should.

My main issue is with the initial page view. Can you try to help me understand why this is happening? I have read through dozens of other similar issues on the help site here but cannot wrap my head around this.

Please advise as able with my thanks in advance.

Woody House
Online Graphics Canada

Reply To: Parametric Search Issues with latest plugins and WordPress 6.2

$
0
0

Here is the main client site where the problem is manifesting itself – http://www.ggconline.ca/plant-search?

I can do any testing needed per your recommendations.

Woody

Reply To: [Assigned] Attaching users to custom posts

$
0
0

Sorry for the delay answer,
I assume your post type gallery is using slug "gallery"
each user has a gallery post, which is already created, and author is that user.

please try this:

add_action('cred_save_data', 'my_save_data_action',10,2);
function my_save_data_action($post_id, $form_data)
{
// if a specific form
    if ($form_data['id']==123)
    {
        $current_user = wp_get_current_user();
        $current_ID = $current_user->ID;
		$parameters = array('author'=> $current_ID, 'post_type' => 'gallery');
		$posts = get_posts($parameters);
		if($posts)
		{
			$gallery_ID = $posts[0]->ID;
            update_post_meta($post_id, '_wpcf_belongs_gallery_id', $gallery_ID);
		}
    }
}

Please replace 123 with your CRED form post ID.

BUG – CRED EDIT POST opens several forms in sidebar too

$
0
0

I just created an Edit Post form with cred. In my page I also have sidebars which display some toolset content. The first widget in the sidebar is

[wpv-post-body view_template="Login Credentials"]

The second widget in the sidebar is

<br />
[types field="facebook-page"][/types]
[wpv-if featured="wpcf-featured-label-directory" evaluate="$featured != 'featured'"]
[wpv-post-body view_template="Ads Zone 2"]
[wpv-view name="Featured in Directory Sidebar"]
[/wpv-if]

The problem is, that while these two widgets work perfectly, they are both replaced by the CRED From when in Edit mode plus there is also the form appearing where I want it to appear. All three forms are attempting to edit the same content type. Note that the widgets have absolutely nothing related to this post they are on. Also, the page I added the form on is supposed to be on a Page without sidebars, but the form is actually appearing on the same URL as the post but with ?cred-edit-form=27619 attached to it.

Could someone please look into this as I believe this to be a bug as of course the form should not appear in any widgets containing a view template or a view.

Reply To: [Assigned] Reply to Review of Listing by Featured Listing Owner

$
0
0

Got the email, working on it now.

Reply To: [Assigned] Carousel of child posts

Reply To: [Assigned] Missed custom post type in Content Template

$
0
0

Dear olegB

We can't reproduce this in our testing. Can you export your Types settings and email it to me at bruce@icanlocalize.com.

Thanks,
Bruce.


Reply To: [Waiting for user feedback] BUG – CRED EDIT POST opens several forms in sidebar too

$
0
0

Sorry, forgot to include it. I have sent you an email with the details

Reply To: [Waiting for user feedback] cred_save_data to select a category in a form

$
0
0

So what about the suggestions on this topic and on the other two http://wp-types.com/forums/topic/pre-populated-select-field-in-cred-form/
http://wp-types.com/forums/topic/pre-populated-custom-taxonomy-category-in-cred/ ? I was told the cred_save_data should do the trick.

Create custom taxonomy tag from post title w/ Cred

$
0
0

I have a Cred form used to create a 'practitioner' (a custom post type), including several custom fields and custom taxonomies. I am using the post title in place of a dedicated custom field for the practitioner's name for simplicity's sake. What I would like is to automatically create a custom tag using the post title when the cred form is saved. My custom taxonomy slug is 'person'.

I have seen other similar topics on the forum (http://wp-types.com/forums/topic/cred-saving-user-submitted-custom-field-as-post-title/), but I have not been able to get that solution to work. Perhaps it is because a taxonomy requires different treatment?

I have created a functions.php in my child theme and I have added the following code, with no luck so far:

add_action('cred_save_data_[513]','practitioner_title_tag');
function practitioner_title_tag($post_id) {
$type = get_post_type($post_id);
if ($type == 'practitioner') {
$title_tag = get_post_meta($post_id, 'post_title', true);
$slug = sanitize_title($title_tag);
wp_update_post(array('ID' => $post_id, 'person' => $title_tag, 'post_name' => $slug));
}
}

Any help you can provide would be appreciated!

Reply To: Parametric search results page and WPML

$
0
0

Dear Hassan,
Yes you are right. The results are not directing to the search results page. Anyway, we don't have shortcode that we can easily use to test the language and use that to the form. But I added a jQuery solution to your Home View Template JS section:

jQuery( document ).ready( function( $ ) {
  
  var browser_lang_displayed=$('html')[0].lang;
  if (browser_lang_displayed=='en-US') {
   $('.wpv-filter-form').attr('action', 'http://yoursite.com/en/search-results/');    
  }
});

The above script will execute only on English version and replace it with the correct search result page. In Arabic, it will use the original target ID that is Arabic. I also remove the target_id to 0 and simply use:

[wpv-form-view name="Home Search" target_id="1566"]

Please let me know how it goes. Thanks.

Cheers,
Emerson

Reply To: [Resolved] Displaying WooCommerce Products with a Custom Taxanomy

$
0
0

Dear Scarlet,
Great to know the original issue on Views is working for you now. If you need help on the layout, I would recommend you will create a separate ticket on this since you marked this ticket as resolved. This separate one issue from the other.
As an input, the Classifieds example is a complex grid which is composed of several fields. Your case will display only the featured image with the link to the product videos. I did some test on your site and this won't work. Thanks.

Cheers,
Emerson

Conditional Output Field

$
0
0

I'm using the plugin vidembed to allow users to embed video from either a youtube or vimeo url.

I need to create an expression to either display one or the other. (The .png files listed in parentheses refer to screenshots I attached)

I created a radio field to ask the user if they were posting a url from youtube or vimeo.
(radio field.png)

In the radio field I set the youtube value to 1 and the vimeo value to 2.
(radio field.png)

I also set up a conditional display so it displays the meta box for whichever value they select. Youtube field for youtube, and vimeo field for vimeo.
(youtube url field.png)
(vimeo url field.png)

Now I just need to create a views expression to display the field for youtube if the radio field value is 1 and vimeo if the radio field value is 2.
(view template.png)

If I enter both fields without the expression it renders the correct video but it displays a nonworking iframe for the empty url field as well.
(post page.png)

Any help would be greatly appreciated.

Reply To: [Assigned] Create custom taxonomy tag from post title w/ Cred

$
0
0

Hi jeffM,

Please try this:

add_action('cred_save_data_513','practitioner_title_tag');
function practitioner_title_tag($post_id) {
$type = get_post_type($post_id);
if ($type == 'practitioner') {
$title_tag = get_post_meta($post_id, 'post_title', true);
$slug = sanitize_title($title_tag);
wp_update_post(array('ID' => $post_id, 'person' => $title_tag, 'post_name' => $slug));
}

More help: http://wp-types.com/documentation/user-guides/cred-api/


Reply To: [Waiting for user feedback] Upgraded to 3.6 & Genesis 2.0 & now view templates not working

Urgent: Using numbers in custom content type break site

$
0
0

I created a custom content type using some numbers (3D Videos) and that gave me an error. I didn't copy down the error unfortunately and can't seem to re-create it again. The content type got created anyway but I deleted that content type and created one without the number and that works fine. Now I get this error when accessing the site with www. instead of http://

This is the error I got.

Parse error: syntax error, unexpected '3' (T_LNUMBER), expecting identifier (T_STRING) or '(' in /data/rocketsc/public_html/wp-content/plugins/types/embedded/includes/custom-types.php(215) : eval()'d code on line 1

Warning: call_user_func_array() expects parameter 1 to be a valid callback, function '3d_video_add_default_taxes' not found or invalid function name in /data/rocketsc/public_html/wp-includes/plugin.php on line 406

Please help

Selecting fields in views has stopped working

$
0
0

None of my views will allow me to add a new field. Also I created a new view, and it won't let me add any fields at all. When I try I get a big blank white box and nothing happens after that.

Kat

How to display the reviews submitted by CRED Forms in a single page

$
0
0

Hello seniors,
Well for the past 8 hours, i have been trying to display the reviews [user reviews] submitted by the CRED form in a single page, but i am failing miserably.

I will really appreciate if someone can help me with this.

Thanks

updating anything in views/cred takes me to a wordpress post.

$
0
0

i have a second site that i've imported fields, post types, views, view templates into. when i update something, it takes me to a wordpress post.

Viewing all 20145 articles
Browse latest View live




Latest Images