Sharing Wordpress Tips and Wordpress FAQs about Wordpress Themes, Plugins and Functions
I’m trying to echo a form, when the user is logged in, I get this in the browser when I upload the code: syntax error, unexpected ‘endwhile’ (T_ENDWHILE) in My code: <?php /* Template Name: Customers */ get_header(); ?> <div id=”primary” class=”site-content”> <div id=”content” role=”main”> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( […]
While building plugins one of my biggest annoyances is that my development machine does not match a real world install. What I mean here is that my databases are lacking. I’ll code something thinking it’ll work (since it does during development) then find out it doesn’t because I neglected a minor detail missing from my […]
I’m trying to allow “author” users to embed in posts. I (the administrator) can iframe, embed, etc…., but authors can not. Can someone show me to give authors ‘just’ the ability to embed and iframe in posts?
From the Moving WordPress codex page (emphasis mine): When your domain name or URLs change there are additional concerns. The files and database can be moved, however references to the old domain name or location will remain in the database, and that can cause issues with links or theme display. If you do a search […]
I am interested in displaying the top 3 stories in the past week based on the total number of shares on Facebook and Twitter. I have found that these share counts are more useful indications of what is popular in comparison to sorting by the number of comments using ‘orderby’ => ‘comment_count’. So my question […]
I have set up some CPTs and storing a meta key/val for each of them. When I get those posts, I need to order them by the meta value, but, the order of the meta values will be defined in an array by me. The default ordering for meta values is either alphabetical or numerical, […]
I want to use Register Shutdown Function to track Fatal Errors, my question is, where’s the best place to call this so it hits both WordPress, Plugin, and Theme Fatal Errors?
I have post type called blog and i’m showing posts for the type using query_posts, eg. query_posts(‘post_type=blog’); I would like to add pagination for this post type in the following format. [First]  [Last] Please let me know how can I do this? Thanks.
As with anything in WordPress it seems there are 20 way to do something, but after several weeks of extensive searching I really haven’t found more then a couple tutorials floating around that really mirror each other in writing conventions which always makes me a little uneasy when this is the way I learn so […]
I need to create a PHP script that will receive data from another application via an HTTP post, process that data, and update the WordPress database. This script will run silently (i.e., no HTTP output). What is the best way to set up such a page? I thought about creating a custom template file with […]