Browsing Category

Wordpress functions

Display posts using post ID’s in an array

I currently have an array of post ID’s stored as $recenty_viewed that looks like this: Array ( [0] => 3164 [1] => 3165 [2] =>

add_rewrite_rule works in themes function php but when moved into plugin it stops working

As stated in the title this code is working in my functions php file in the active child theme. I do not have much if

Code to allow html formatting in excerpts

I posted the code below in functions.php to allow html formatting in post excerpts and it worked well on the text but the thumbnail image

How to exclude a specific woocommerce product attribute value in function?

Two parts: what I did and what I want to do. What I did. We wanted the price display to be other than the spread

How to exclude a specific woocommerce product_attribute in function?

Two parts: what I did and what I want to do. What I did. We wanted the price display to be other than the spread

Decimal stripped from metabox number

I am working on a WordPress website for a client to show several property listings and their associated prices. When I enter the number in

How to disable register and reset the password from WordPress admin panel?

How to disable register and reset the password from WordPress admin panel? Please I want to do this by codes without using plugins. Read more

add_theme_support( ‘title_tag’ ) is not showing title on index.php

i’m developing a theme. I read there that themes should have the support to title tags declaring it in functions.php. I did so, together with

Problem with function.php.. like

Im sorry, if you show my blog at autodhil.com that have a problem cause on the top of my blog have a wrong scrip..so that

Change destination author link

It’s possible change the destination of the normal author link to a post page or other link inside the website? I have found this answer

If Checkbox is True do this / False do that

I am trying to get my page to display one of two contact forms based on whether a checkbox is “true” If you are an

Php include statment issue with page template

I have an API located in folder under my root. I already made new page template as advised on this link: How to add a

Why do I get a PHP error on the add_filter function?

I’m trying to create a custom plugin using PHP that pulls a list from a table and uses it to populate a pulldown list in

include_once file to wp_footer – not working

I’m working on a plugin that detects adblock users and puts up an ad wall (I’m sure you hate me now and don’t want this

Handle changed Woocommerce function

I recently updated my Woocommerce site to 3.0.6 and a change in the class-wc-cart.php has caused an issue on my cart page: I have a

Custom shortcode displays at page top. Not where I put it?

I’ve got a custom shortcode: function get_saturation($atts) { $sws = exec("awk -F"," '{if(NR==2) printf("%.1f \n",($10/8.4)*100 )}' data/2myfile.csv", $retval); echo $sws . " percent saturation<br>"; }

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