Skip to main content
4 votes
1 answer
3k views

WordPress - how to get uploaded image by filename?

How can I get the image that I upload to my media collection - by the image name? For instance I upload an image called apple.jpg and now I want to get this dynamically without hard-coding its url. ...
Run's user avatar
  • 56.9k
0 votes
1 answer
121 views

Custom API integration with WordPress

I'm planning on creating a deals and coupon site using wordpress. I want to automate it with the the data api that gives data in JSON. But how will I integrate this api in compatibility with WordPress ...
Akshay Cj's user avatar
1 vote
2 answers
4k views

WordPress dynamic widget - how to remove markups and change class names?

I added a new sidebar function child_register_sidebar(){ register_sidebar(array( 'name' => 'Social Media (Follow)', 'id' => 'sidebar-follow', 'description' => __( ...
Run's user avatar
  • 56.9k
0 votes
2 answers
2k views

WordPress Widget Text - how to display it anywhere manually?

How can I get the WP widget text manually? I try with this code being displayed: <?php the_widget( 'WP_Widget_Text' ); ?> But I have nothing being displayed. Anything specific I need to pass ...
Run's user avatar
  • 56.9k
1 vote
1 answer
4k views

WordPress wp_head - how to remove link canonical and api?

How can I remove these two links from the WP header? <link rel='https://api.w.org/' href='http://xxx/wp-json/' /> <link rel="canonical" href="http://xxx/" /> I don't know what they are ...
Run's user avatar
  • 56.9k
12 votes
2 answers
21k views

WordPress wp_head - how to add new script files to the top?

How can I add my script files to the very top in the wp_head? From this guide, using the code below will always add my new script file to the very bottom: add_action('wp_head','hook_javascript'); ...
Run's user avatar
  • 56.9k
0 votes
1 answer
136 views

WordPress - list menus data in array?

How can I get my menus in an array? With wp_nav_menu ( );, I will get the list with HTML, but I don't want the HTML tags. I just want the data. I found this but what is this line for - $menu_name = ...
Run's user avatar
  • 56.9k
0 votes
1 answer
112 views

Show total comments per post

I have problem with showing total comments in wordpress. The comment's total didn't show in right place. Here's what it looks like What I want is Here's my code '<li class="meta-item meta-total-...
janskii's user avatar
  • 49
1 vote
0 answers
13 views

Wordepress 4.3 won't allow new posts

Downloaded WordPress 4.3 last week and it was great. As of yesterday it won't allow me to type in the text box to create the body of a post. I can only type in the title bar. I am desperate and have ...
user5307844's user avatar
0 votes
1 answer
225 views

How to add before_widget 2 div

register_sidebar( array( 'name' => __( 'Main Widget Area', 'predator' ), 'id' => 'sidebar-1', 'description' => __( 'Appears in the footer section ...
Ravi Patel's user avatar
  • 5,211