Browsing Category

Wordpress functions

function syntax is off,

I have this working in the woocommerce content-product.php, but i don’t want to modify the core files. <p style="font-size:11px;"> <?php if ( is_page( array (

Can I use require() function in a template file?

In my template file I want to include a library. I uploaded the library into my theme folder, and inside my theme folder is my

How to include all files within a folder to functions.php?

My functions.php includes other function files located within a ‘functions’ directory. Currently they’re individually added, in the format of this example: include('functions/login.php'); How can I

Debugging Technique Question re: functions.php

I needed to develop a technique to delete some data from the database. The technique will be part of a plugin at some point. For

Add theme settings page in AWPS theme OOP way

I was wondering if some of you can help me to understand how do you add settings page in AWPS theme in Object Oriented way

WordPress Post Templates Option, but selection by Image format

I browsed WordPress Codex, and I find something like this → function is_page_template( $template = '' ) { $page_template = get_page_template_slug( get_queried_object_id() ); if (

Allowed memory size of 268435456 bytes exhausted (tried to allocate 7146491840906359738 bytes)

We’re on v4.4.10 and keep having to restart the web server due to this issue. I’ve read various other posts and increased the wp-config.php memory,

How to trim content AND retain HTML?

I have an element that use to pull in the_excerpt but we wanted to retain the HTML. So we started using the_content. Now the amount

How to create shortcode with html and php content?

I want to create a shortcode for one of the content form theme. My template’s content: <section id="standing" style="background-image: url('<?php echo (get_option('pixieclash-standings-background') && get_option('pixieclash-standings-background') !=

WordPress shortcode with html and php content

Hi i want do shortcode for one of the content form plugin and theme. So plugin has: <section id="standings" class="admin-section"> <h2><?php esc_html_e('List of groups', 'pixieclashpanel')

Blank Child Theme – Style enqueue not in functions

I’m trying to learn how to do child/parent themes with wordpress. I am using pure by gt3themes. I followed the WP documentation for enqueing the

Keyword checking in Gravity Forms

In Gravity Forms I’d like to include a small keyword checker that is checking the user’s message for “spammy” words and stops sending the entry

Function image_send_to_editor returns emty title tag

I am using the following code to wrap my images with figure when i send the images to the editor. // Wrap the inserted image

Allow user to select location and then set cookie for location in WordPress

I am needing to allow a user to select a location from a dropdown on the front-end, that then sets a session cookie for that

Showing wordpress latest post thumbnails in slider with auto increment

I would like to show latest posts with its thumbnails only in slider. But my first figure element has a class. Can I apply a

Including admin-options.php file in Child Themes

My theme uses the following in functions.php require_once get_template_directory() . ‘/includes/admin-options.php’; I want to override this with my own version of the admin-options.php file, which

Back to Top 145132 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising