maheshwaghmare
  • Member for 7 years, 6 months
  • Last seen this week
1 answers
0 votes
482 views
How add custom text under comment form
0 votes

You can modify the comment form. WordPress provides various hooks. See comment_form(). Actions comment_form_comments_closed comment_form_before comment_form_must_log_in_after comment_form_top ...

View answer
2 answers
3 votes
1k views
how to add custom user capabilities using add_user_meta or something else?
0 votes

That's right the s:23 is serialized data. WordPress automatically store the data in serialized format. Also, To set the user capabilities use function add_cap() instead of updating the user meta. For ...

View answer
1 answers
2 votes
560 views
Is it possible to nest the JSON result of Wordpress REST API?
0 votes

Use below code snippet function video_get_post_meta($object, $field_name, $request) {    return array( 'video' => array( ‘length’ => get_post_meta($object['id'], ‘...

View answer
1 answers
0 votes
638 views
Soflyy WP All Import Custom File Download Issue
0 votes

Instead of custom curl HTTP request I'll recommend you to use the wp_remote_post() or wp_remote_get() which internally call the HTTP request and handle all possible errors. Also use download_url() ...

View answer
2 answers
0 votes
2k views
I can't add CSS with functions.php
0 votes

Use wp_enqueue_style( 'theme-slug', get_stylesheet_uri() ); Building a WordPress theme always use unique theme prefix for everything including function, class, constants, option etc. Also, read ...

View answer
3 answers
1 votes
1k views
Undefined functions on the server
0 votes

You need to use Template: shapely instead of Template: Shapely E.g. /* Theme Name: Shapely Child Template: shapely Version: 1.1.7 Author: colorlib Author URI: LINK */ Template is the directory/...

View answer
3 answers
0 votes
78 views
Beginner's question about shortcodes
Accepted answer
0 votes

It looks like theme issue. Switch to default WordPress theme and check it. I have tested it on WordPress Twenty Seventeen theme. For testing: 1) Add below code in theme functions.php // Sample ...

View answer
4 answers
1 votes
104 views
working Custom Post Type and Widget code no longer works when moved from functions.php to plugin
0 votes

You can use: function activate_my_careers() { add_action( 'init', 'create_career_posttype'); add_action( 'admin_bar_menu', 'add_careers_to_admin_bar', 1000000); add_action( '...

View answer
1 answers
1 votes
78 views
How to pass variables to custom filter from multiple functions
0 votes

I think from your code add_action( 'wp_footer', 'purewpns_googlefont_loader' ); Function purewpns_googlefont_loader maybe typo mistake. You use the action wp_footer and added empty array which ...

View answer
1 answers
3 votes
704 views
Customizer preview doesn't update get_option() value properly
0 votes

You use the type option to store your settings. Customizer doe not store your default values in database until user click on save. @see https://wordpress.stackexchange.com/a/247164/52167

View answer
1 answers
0 votes
20 views
How can I make menu items into two seperate buttons with different functions?
0 votes

You need to create your own Nav Walker to add HTML entity for parent menus. Which is clickable and toggle the sub menu. @see: Plugin for reference https://wordpress.org/plugins/responsive-menu/ ...

View answer
2 answers
0 votes
3k views
A problem with functions.php file on my WordPress site
0 votes

You need to enable your debug log to know actual problem on your site. Enable Debug log from your site though below steps: Open wp-config.php from your WordPress setup. Add below lines define( '...

View answer
3 answers
0 votes
2k views
Customizer image control default value showing in customizer but not on frontend
0 votes

Thanks @Felipe for explanation & @westonruter for providing the solution in the gist. Solution: Create defaults array and use it in Customizer & on Front End. Step-1: Register theme ...

View answer
2 answers
0 votes
6k views
jQuery function not working
0 votes

You need to add your script though: Using wp_enqueue_script() in themes function.php or Use wp_footer action to add your jQuery script. If your html in a shortcode then register your script using ...

View answer
9 answers
39 votes
101k views
Add category base to url in custom post type/taxonomy
0 votes

Yep! After a lot of research I got plugin 'Custom Permalinks'. Which fulfils my requirement regards - custom URL e.g. for Category for Post for Custom Post for Custom Taxonomy etc. Like this Custom ...

View answer
2 answers
0 votes
2k views
Custom meta box not saving values of radio buttons in Wordpress
0 votes

Replace your code with: echo ($value[0] == 'layout-none')? 'checked="checked"':''; echo ($value[0] == 'layout-left')? 'checked="checked"':''; echo ($value[0] == 'layout-right')? 'checked="checked"':...

View answer
3 answers
-1 votes
5k views
Using $variable in shortcode
-2 votes

You have missing shortcode_atts and passing arguments in a shortcode. E.g function shortcodevariable( $atts ){ $data = shortcode_atts( array( 'attribute-1' =&...

View answer
1
2