kasra naraghi
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Plugins
In reply to: [Redirection] Regex in the Redirection Manager.Redirect is not done and 404 error is displayed
Forum: Plugins
In reply to: [Redirection] Regex in the Redirection Manager.I came to this, but it is not true
^/go\.php\?https://gamefa.com/(.*)$If this code is inactive
SELECT PRIMARY works fine
But if the code is active
SELECT PRIMARY is not displayed
If we had a prioritization system to display categories
It would be much better
We do not need this code- This reply was modified 10 months, 2 weeks ago by kasra naraghi.
- This reply was modified 10 months, 2 weeks ago by kasra naraghi.
Unfortunately no
Does not work$metaData = aioseo()->meta->metaData->getMetaData( $postId ); if ( empty( $metaData->primary_term ) ) { add_filter( 'aioseo_breadcrumbs_output', 'aioseo_breadcrumbs_output_start' ); function aioseo_breadcrumbs_output_start( $display ) { if ( ! is_singular( 'post' ) ) { return $display; } add_filter( 'wp_get_object_terms', 'aioseo_breadcrumbs_trail_change_term' ); return $display; } function aioseo_breadcrumbs_trail_change_term( $terms ) { remove_filter( 'wp_get_object_terms', 'aioseo_breadcrumbs_trail_change_term' ); $hasArticlesTerm = current( wp_list_filter( $terms, [ 'slug' => 'game' ] ) ); if ( ! empty( $hasArticlesTerm ) ) { foreach ( $terms as $key => $term ) { if (( 0 === $term->parent && $term->term_id !== $hasArticlesTerm->term_id ) || ( 0 < $term->parent && $term->parent !== $hasArticlesTerm->term_id )) { unset( $terms[ $key ] ); } } } return $terms; } }
- This reply was modified 10 months, 2 weeks ago by kasra naraghi.
Viewing 4 replies - 1 through 4 (of 4 total)