Retain Author field value when editing it from the front end
Started by: Silvia
in: Toolset Professional Support
Quick solution available
Problem: I have a generic field in a Form where Users can select from different post authors. It works fine in a new post Form, but in an edit post Form the select field does not display the selected value.
Solution: Use the wpv-post-author shortcode to pass the correct ID into the default attribute.
[cred_generic_field field='change_post_author' type='select' class='' urlparam='']
{
"required":0,
"validate_format":0,
"default":[[wpv-post-author format='meta' meta='ID']],
"options":[ [wpv-view name="Tutti gli Utenti"] ]
}
[/cred_generic_field]
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-author
2
7
6 years, 5 months ago
Silvia
wysiwyg custom field not showing right
Started by: Ido Angel
in: Toolset Professional Support
Quick solution available
2
5
6 years, 5 months ago
Ido Angel
Toolset Map does not display specified address
Started by: felixP-3
in: Toolset Professional Support
Quick solution available
2
6
6 years, 5 months ago
felixP-3
How to get view to appear on same line as other content?
Started by: davidR-12
in: Toolset Professional Support
Quick solution available
Problem:
Get clean output from a view.
Solution:
The code below should be able to assist you.
add_filter( 'wpv_filter_wpv_view_shortcode_output', 'prefix_clean_view_output', 5, 2 );
function prefix_clean_view_output( $out, $id ) {
if ( $id == '375' ) {
$start = strpos( $out, '<!-- wpv-loop-start -->' );
if (
$start !== false
&& strrpos( $out, '<!-- wpv-loop-end -->', $start ) !== false
) {
$start = $start + strlen( '<!-- wpv-loop-start -->' );
$out = substr( $out , $start );
$end = strrpos( $out, '<!-- wpv-loop-end -->' );
$out = substr( $out, 0, $end );
}
}
return $out;
}
2
5
6 years, 5 months ago
davidR-12
using “post__in” with the $query_args for “wpv_filter_query” filter hook
Started by: mohammadD
in: Toolset Professional Support
Quick solution available
2
3
6 years, 5 months ago
mohammadD
Embedded media in Layout tab
Started by: mandyM-2
in: Toolset Professional Support
Quick solution available
Problem:
The issue here is that the user is mentioning that the Embedded media field displays differently when using the Layouts Tabs.
Solution:
In this case it turned out to be a plugin conflict as the user was able to resolve the issue by disabling some of their plugins.
2
4
6 years, 5 months ago
mandyM-2