fahimS-2
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
| Status | Debate | Supporter | Voces | Mensajes | Caducidad |
|---|---|---|---|---|---|
|
Sub Categories Placement in Custom Search
Iniciado por: fahimS-2 en: Toolset Professional Support |
|
2 | 5 |
3 years, 9 months ago
- |
|
|
Can't Find Repeatable Group in Toolset view Content
Iniciado por: fahimS-2 en: Toolset Professional Support |
|
2 | 5 |
3 years, 9 months ago
- |
|
|
Checkboxes filter aren't working
Iniciado por: fahimS-2 en: Toolset Professional Support |
|
2 | 5 |
3 years, 9 months ago
- |
|
|
Custom Field slug already used
Iniciado por: fahimS-2 en: Toolset Professional Support |
|
2 | 5 |
3 years, 9 months ago
- |
|
|
View Edit
Iniciado por: fahimS-2 en: Toolset Professional Support |
|
3 | 7 |
3 years, 9 months ago
- |
|
|
jQuery in Toolset View
Iniciado por: fahimS-2 en: Toolset Professional Support |
|
3 | 5 |
3 years, 9 months ago
- |
|
|
Dependent Custom Field
Iniciado por: fahimS-2 en: Toolset Professional Support |
|
2 | 3 |
3 years, 9 months ago
- |
|
|
Can't Find Repeatable Group To Show
Iniciado por: fahimS-2 en: Toolset Professional Support |
|
2 | 6 |
3 years, 9 months ago
- |
|
|
Checkbox Values Update
Iniciado por: fahimS-2 en: Toolset Professional Support |
|
3 | 7 |
3 years, 9 months ago
- |
|
|
Another View already uses this name. Please use another name.
Iniciado por: fahimS-2 en: Toolset Professional Support |
1 | 2 |
3 years, 9 months ago
- |
||
|
Bootstrap Grid Version
Iniciado por: fahimS-2 en: Toolset Professional Support |
|
2 | 3 |
3 years, 9 months ago
- |
|
|
Custom Post Link
Iniciado por: fahimS-2
en: Toolset Professional Support
Problem: How to remove the base slug of a custom post type? Solution: It is not recommended to do that as slugs need to be unique in WordPress. You can do it by adding the custom code below: [php]
function na_remove_slug( $post_link, $post, $leavename ) {
if ( 'events' != $post->post_type || 'publish' != $post->post_status ) {
return $post_link;
}
$post_link = str_replace( '/' . $post->post_type . '/', '/', $post_link );
return $post_link;
}
function na_parse_request( $query ) {
if ( ! $query->is_main_query() || 2 != count( $query->query ) || ! isset( $query->query['page'] ) ) {
return;
}
if ( ! empty( $query->query['name'] ) ) {
$query->set( 'post_type', array( 'post', 'events', 'page' ) );
}
}
add_action( 'pre_get_posts', 'na_parse_request' );
[/php]
Relevant Documentation: |
|
2 | 5 |
3 years, 9 months ago
- |
|
|
And Logic Between Checkboxes
Iniciado por: fahimS-2 en: Toolset Professional Support |
|
2 | 5 |
3 years, 10 months ago
- |
|
|
Search Impact
Iniciado por: fahimS-2 en: Toolset Professional Support |
|
2 | 5 |
3 years, 10 months ago
- |
|
|
Filter View
Iniciado por: fahimS-2 en: Toolset Professional Support |
|
2 | 5 |
3 years, 10 months ago
- |