Javier Félix Hernández Márquez
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
Dieser Benutzer hat keine Lieblingsthemen.
Forum Topics Created
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
Redirect a taxonomy to a static WordPress in translating with WPML…
Gestartet von: Javier Félix Hernández Márquez in: Types Community Support |
2 | 6 | vor 6 Jahre, 7 Monate | ||
Redirect a taxonomy to a static WordPress
Gestartet von: Javier Félix Hernández Márquez
in: Types Community Support
Problem: Solution: function custom_post_taxonomy_fun( $atts ) { extract(shortcode_atts( array( 'site_url' => home_url(), 'taxonomy_slug' => '', 'taonomy_name' => '', ), $atts )); $content = ''; if($taxonomy_slug != '' && $taonomy_name != '') { $tax_slug_array = explode(',', $taxonomy_slug); $tax_name_array = explode(',', $taonomy_name); for($i=0; $i < count($tax_slug_array); $i++) { if($i != 0) $content .= ', '; $content .= '<a href="'.$site_url.trim($tax_slug_array[$i]).'">'.$tax_name_array[$i].'</a>'; } } return $content; } add_shortcode( 'custom_post_taxonomy', 'custom_post_taxonomy_fun' ); 2. Then use this shortcode in Content Template like this: [custom_post_taxonomy taxonomy_slug="[wpv-post-taxonomy type='autor' format='slug']" taonomy_name="[wpv-post-taxonomy type='autor' format='name']" site_url="http://borrador.editorial-zech.es/"] |
2 | 5 | vor 6 Jahre, 7 Monate | ||
Redirect a taxonomy to a static WordPress page…
Gestartet von: Javier Félix Hernández Márquez
in: Types Community Support
Problem: I have placed a taxonomy link in my Content Template using the wpv-post-taxonomy shortcode. Instead of linking to the term archive page, I would like to link to a static page that has the same name and slug. Solution: <a href="http://yoursite.com/[wpv-post-taxonomy type='autor' format='slug']">[wpv-post-taxonomy type="autor" format="name"]</a> Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-post-taxonomy |
2 | 5 | vor 6 Jahre, 8 Monate | ||
Warning: field slug is already being used!
Gestartet von: Javier Félix Hernández Márquez
in: Types Community Support
Problem: Solution: After that you can again use the same slug/name for the field. |
2 | 3 | vor 6 Jahre, 9 Monate |