Browsing Category

Wordpress filters

apply_filters(‘the_content’, $content) vs do_shortcode($content)

Lets say I have a theme option or custom postmeta text area. Now I want to execute multiple shortcodes, general texts, images etc. What will

Widget is breaking on filter function

I have created a widget which displays posts based on Display Posts shortcode. All works fine till I have added filter to public function widget()

<p> tag removed not using a filter

Very strange WordPress behavior: tags are removed when placed inside tags, but not always. for example, this works fine: <pre><p>This is a paragraph</p></pre> But when

Removing a line from a WP core function (comment_template.php) - filter or other technique?

The effect I want to achieve - at least at this point - is simply to have the comment reply link continue to appear below

membrane filter press manufacturer

filter press for sale membrane filter press UV water technology is the most cost-efficient and effective means on today’s market. filter press for sale If

Is there any filter to trigger as soon as media is uploaded to post or page?

I am new to WordPress. I want to change attributes of image when uploaded to page or posts. Is there any filter for it? Thanks

GravityForms gform_tabindex_X filter not working

I am attempting to use this code snippet in my theme’s functions.php file to assign a new starting tab index to form 5 as mentioned

getting value from gravity form entries

i have a Gravity Form and want to get the values from various fields, do a calculation and put that value into a total field

Custom nav walker: How to acces the $args parameter?

I am creating a custom nav walker. I noticed that the nav walker class from the WordPress core is written rather rough – much of

Filtering soliloquy caption

Good afternoon, I’m starting to learn about filters and wondering what the best practice would be to filter the code below to add a CSS

Remove image width and height on replace

I’ve already figured out how to remove the height and width attribute from images on insert: add_filter( 'get_image_tag', 'remove_width_and_height_attribute', 10 ); add_filter( 'post_thumbnail_html', 'remove_width_and_height_attribute', 10

Move plugin content into the_content

I have a plugin to display author content in a post. The plugin is working as intended, but I’d like to move the display of

WordPress Custom Field Filter Broken For Comparison

I’m running a custom field - event date and time - that uses a UNIX timestamp to denote when an event takes place. I’d like

How can I use a filter/hook to modify the URL passed in the content of an [embed] shortcode?

If I pass the shortcode an absolute URL that only includes the path (i.e. it starts with a slash and is hosted on the same

Filter wp_get_attachment_image

I’m working on a new WordPress plugin, that will have to change the media library directly. For that I have to overwrite or filter the

Create Featured images on the fly

The title is too short to descirbe what i want to accomplish so let me start. I have a custom type (‘chesspuzzles’) and I want

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