gnjang
Forum Replies Created
-
Is there any way to set it with code?
- This reply was modified 10 months ago by gnjang.
Forum: Developing with WordPress
In reply to: I wandAdmin see submissionsthanks
- This reply was modified 10 months ago by gnjang.
Forum: Developing with WordPress
In reply to: How can I add upload folder filter to the Media Library?thank you
Let’s review it.Forum: Developing with WordPress
In reply to: Why remotve script tag when admin edit postI want to prevent tags like <!– from being changed to > ,lt .
Forum: Developing with WordPress
In reply to: Why remotve script tag when admin edit postI would like to know if there is any hooking method so that when an account designated as a general administrator, not a super administrator, edits a post, all posts are replaced.
Forum: Developing with WordPress
In reply to: Why remotve script tag when admin edit postI understand the script, but is there any other way to delete HTML <!– comments?
Forum: Developing with WordPress
In reply to: How to exclude image searchThank you for answer..
Forum: Developing with WordPress
In reply to: How to exclude image search$post_type is a custom post type.
However, unlike what you said, if you search by class name in the feature image, it is possible to search.example : img width=”296″ height=”168″ src=”https://dva.remotecall.com/kr/wp-content/uploads/sites/2/2023/09/image2.jpeg” class=”attachment-296×210 size-296×210 wp-post-image” alt=”” decoding=”async” loading=”lazy”>
search text : att or attachment
- This reply was modified 1 year, 2 months ago by gnjang.
Forum: Developing with WordPress
In reply to: How to exclude image search$args = array(
“post_type” => $post_type,
‘posts_per_page’ => -1,
‘orderby’ => ‘date’,
‘order’ => ‘DESC’,
‘s’ => $s,
);
$list_query = new WP_Query($args);
I am using it like this. What solutions are there?
Forum: Developing with WordPress
In reply to: Custom post type & custom taxonomy URIthank you..
All of the answers you gave were helpful, and there was a risk in changing the rewrite_rule, so I replaced it with a plug-in and applied it.
It works perfectly.Forum: Requests and Feedback
In reply to: Custom post type & custom taxonomy URIOther Forums
Thank you for answer @delyandelov
Forum: Developing with WordPress
In reply to: Custom post type & custom taxonomy page loadHi @bcworkz
Then, if post slug is video and taxonomy is video, is taxonomy read in taxonomy-video-videos.php? I’m going to give it a try.Then, if post slug is video and taxonomy is video, is taxonomy read in taxonomy-video-videos.php? I tried both taxonomy-video-videos and taxonomy-video but failed.
I want the /video/category-slug url to work.- This reply was modified 2 years, 5 months ago by gnjang.
Forum: Developing with WordPress
In reply to: Custom post type & custom taxonomy page loadfunction taxonomy_slug_rewrite($wp_rewrite) { $rules = array(); $taxonomies = get_terms( array( 'taxonomy' => 'videos', 'hide_empty' => false, ) ); $post_types = get_post_types( array('public' => true, '_builtin' => false), 'videos' ); foreach ($post_types as $post_type) { foreach ($taxonomies as $taxonomy) { if ($taxonomy->taxonomy != $post_type->name) continue; $categories = get_categories(array( 'type' => $post_type->capability_type, 'taxonomy' => $taxonomy->taxonomy, 'hide_empty' => 0 )); // echo "<pre>"; // print_r($post_type->name); // print_r($taxonomy->taxonomy); // print_r($categories); foreach ($categories as $category) { $rules[$post_type->name . '/' . $category->slug . '/?$'] = // 'index.php?post_type=' . $post_type->name .'&'. $category->taxonomy . '=' . $category->slug; 'index.php?post_type=' . $post_type->name .'&category_name=$matches[1]&feed=$matches[2]'; } } // taxonomies } // post_types $wp_rewrite->rules = $rules + $wp_rewrite->rules; echo "<pre>"; print_r($wp_rewrite); die; }
I’m trying rewite with that source.
But I want to link to taxonomy-videos.php but it doesn’t work.thank you. As a result of checking the issue, it was confirmed that it was a problem on our side due to proxy setting.