Questions tagged [theme-development]

18 questions
1
vote
1 answer

How to add content in admin page / edit.php on my custom post type

I create a custom post type. My custom post type link like: http://localhost/le/wp-admin/edit.php?post_type=pdfviewer In my custom post edit.php page I want to display some content. Now how to add content here. Please see the image below for better…
1
vote
0 answers

Wordpress category of CPT pagination page 2 ERROR

I got problem of my pagination in category pages >> I made a category taxonomy for my CPT and when I add posts and posts goes to page 2 .. the page 2 got a ERROR not found
1
vote
2 answers

How can I get WordPress plugin version number on the theme?

I want to get a specific plugin version number on my theme area. For example, I want to show the currently active WooCommerce plugin version number. How can I get it? Thanks
1
vote
0 answers

filter special characters from permalinks i.e domain.com/?p=c%3A%2F

whenever I scan my website for security in OWASP ZAP it always show the high risk vulnerability of path traversal attack from certain urls i.e domain.com/?p=c%3A%2F domain.com/?post_type=c%3A%2F domain.com/?s=c%3A%2F How can I secure my website…
1
vote
1 answer

Highlighting margin and padding in a browser

I would know if it was possible to highligth the (logically) invisible margin and padding in a page. Like when we use the inspector dev tools of a browser but permanently. The purpose is to see in the browser if margins and paddings are set in a…
nico
  • 19
  • 6
0
votes
0 answers

How to add additional query string in current url (contains multiple query string) in wordpress

I want to add some custom query string (when click on a column of a table) in the current url which has multiple query string in it. i have tried a lot to restructure the url but failed to do so. here some code which i have tried global $wp; …
Manish Agarwal
  • 166
  • 2
  • 12
0
votes
1 answer

How can I extend classes in wordpress child theme?

I use a paid theme and unfortunately it does not offer the possibility to use own icons from a font. Since I have to observe the GDPR and cannot use Google icons, I would like to use local icons. The only possibility is to import my own CSS file and…
sokolata
  • 491
  • 3
  • 7
  • 21
0
votes
0 answers

How to dynamic this part (Features or Pricing) for my WordPress Custom theme Development

0
votes
1 answer

Wordpress custom theme development: single-{post_type}-{slug}.php hierarchy explained

I am developing custom wordpress websites, the page hierarchy has been a hard concept for me to understand 100%. I have a href ........ In the wordpress backend: BMW is a page M4 is a post Now in my…
Thando Hlophe
  • 57
  • 2
  • 12
0
votes
0 answers

Enqueueing CSS & JavaScript files do not work properly when I try to convert HTML-CSS template to WordPress theme

I am trying to convert HTML template to a WordPress theme. When I try to enqueue CSS and JavaScript files, the website does not work properly as show in the attached image file. Do you have any idea what is the propblem? function…
0
votes
1 answer

Returning Loops wordpress

How do i change this so after the first three posts it stops the loop and returns with the rest of the posts in a separate row have_posts()) : $the_query ->…
crad98
  • 1
  • 5
0
votes
1 answer

Gutenberg blocks and page templates

I developed a pretty complex site with many different page templates, where I echo a lot of custom post-type content, as well as ACF flexible content. Now I would like to create some custom Gutenberg blocks for the site, but I'm not sure how it…
0
votes
0 answers

How to dynamic background image in WordPress?

I am trying to develop a WordPress theme. For this, I am developing a shortcode for a slider. The HTML template use background images for the slider. I am using get_template_directory_uri() function to dynamic the images. But using the…
0
votes
1 answer

Owl carousel does not working in WordPress theme. Help me to solve this problem

I am trying to convert an HTML template to a WordPress theme. Owl carousel works fine in an HTML template. But it does not work in the WordPress theme. The main problem is in the HTML template the Owl carousel classes get automatically by Jquery.…
0
votes
2 answers

I'm developing a WordPress theme and using custom fields. I'm facing the following problem

My code <`li>` The code should give this:- But the code is giving this:-
1
2