0
votes
1answer
51 views

make diffrent template on last six post published

I wanted to make last six posts different template from other posts but I can't get it work below are my loop code inserted on my index.php $last_no_of_posts = 6; $ctr = 0; while ( have_posts() ) { ...
2
votes
1answer
3k views

Why Better WP security plugin returns 418 I'm a Teapot “error”?

I am working on the Wordpress website and all of a sudden after deploying it on the server, I started seeing a problem where some of the pages on my website return 418 I'm a Teapot as Response status ...
4
votes
4answers
1k views

Get a list of existing transients

I have been using transients a lot in WordPress since I discovered them, however to ensure my sites update properly when a post is edited or created I added a function to delete transients on post ...
10
votes
3answers
382 views

Posts with at least 3 tags of a list of tags

There is a set of tags against which posts that have at least 3 of those tags should be matched. Say there is the tags {foo, bar, chocolate, mango, hammock, leaf} I would like to find all posts with ...
0
votes
2answers
692 views

Don't submit post if post title exists

I am using the User Submitted Posts plugin which I love. The only problem with this plugin is that it does not check for duplicate post titles and outputs a post with the same title, even if it ...
0
votes
1answer
331 views

Display author box on just certain category posts?

I'm using this code to display a author box after my blog posts. The issue that I'm having is that it is showing up on all custom post types as well which I don't want. What I need is for it to show ...
0
votes
1answer
55 views

WPMU If MU site has no administrator, deactivate site

So I been tinkering with this thought. Working w/ WooCommerce Subscriptions - if the user is a recurring paid member, they can create and manage their own subsite. However, say the recurring payments ...
1
vote
1answer
376 views

gform_after_submission add list of form titles after the post content [closed]

Can you help me with the code where all I only want is to add the list of all submitters who submitted GF form on every post page right after the post content? Every post has its small CPT form on the ...
0
votes
2answers
83 views

Moving a WordPress site to a new server

I need to copy a WordPress site to a new server. I need this to go as quickly as possible. The URL won't change, but the absolute paths will. Here are the steps I thought of: Put a maintenance ...
0
votes
2answers
432 views

How to add excerpt in loop in Twenty Eleven theme?

Here is my loop code located in index.php file. I am using Twenty Eleven theme. <?php if ( have_posts() ) : ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ...
1
vote
0answers
99 views

Getting php_network_getaddress error : No such host is known?

I am working on wordpress theme on my localhost. I started receiving this error. Its is very annoying and i have no idea to resolve this thing.
0
votes
1answer
241 views

Added Date Filter To Popular Posts Query

I have the following query, which was put together with snippets in the functions.php file: <?php $popularpost = new WP_Query( array( 'posts_per_page' => 5, 'meta_key' => ...
1
vote
1answer
57 views

Show first the posts from 1 specific tag

Is it posible only with 1 loop, to show all posts, but show first the posts in one specific tag? The solutions i found, are using more than 1 loop. If this is not possible, maybe if the post has a ...
0
votes
6answers
216 views

How to do a section of bulleted text within our page?

We have converted a static site to a Wordpress site with a theme which we designed and built. However, not having a massive amount of Wordpress experience we don't know how to approach this problem. ...
1
vote
0answers
637 views

Empty permalinks settings in .htaccess

Permalinks not working other than set to "Default'. I want to change it to /%postname%.html, and default .htaccess is as follows: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On ...
1
vote
0answers
122 views

Add button to kitchen sink toggle

I have created a simple function along with a shortcode, my goal is now to add a button in the sink toggle of wordpress so that the user doesn't have to type anything. Is this hard to achieve? how ...
0
votes
1answer
524 views

Adding querystring variable breaks admin URLs

I've set up some admin pages using add_sub_menu() and whenever I add an additional querystring variable beyond the "page=" portion of the URL, I get a "Cannot load 'page-slug'." message. When I ...
2
votes
1answer
2k views

Control verbosity level of WP DEBUG?

I've been at a loss so far and so I thought I'd pose the question: Is there a way to modify the verbosity level of the WP debug.log via wp-config.php or elsewhere? Just an fyi, here is what I have in ...
0
votes
1answer
105 views

404 error on second page load for child-pages

I have a strange problem which I really do not understand: My site has the page community and a sub-page called test. Permalink structure is set to /%postname%/ So the URLs for the pages are: ...
0
votes
1answer
81 views

get_post_meta in one post only

I have a rough demo here to try and illustrate my problem. http://www.ttmt.org.uk I have six pages with titles - Page One, Two etc. On a index/home page I'm creating a btn/div to link to each ...
1
vote
1answer
45 views

How Can I Query a Specific Page From a MultiPage paginated Post

Let's say I have a post that has been paginated by adding the <!-- nextpage --> code provided by wordpress for this purpose. How can I then query a specific page from inside of that post. ...
0
votes
1answer
94 views

Array of user ids to list of user names

I'm outputting an array of user ids from metadata like so: $awaygoalby = unserialize($post_meta_data['report_away-scorers'][0]); and I want to change each user id to the user name. So I was hoping ...
0
votes
1answer
473 views

Update Custom Field on Imported Post Creation

So I've created a function that updates several custom fields in a post when the post is created. The idea is to sanitize this information so that I can easily use it for other purposes. The ...
1
vote
1answer
176 views

Limit multisite/network site names to a property of the user

We need to limit the blog names users may choose when they create their own blogs. We have a WordPress Network configured to have all blogs share a domain name. E.g., domain.name.com/x, ...
1
vote
1answer
255 views

wp_insert_term is adding a term that has no name

I'm trying to insert a term for a custom taxonomy and a custom post type in Wordpress. The problem I'm running in to is that it successfully inserts a term, and at the right hierarchy level, but the ...
3
votes
1answer
991 views

Why Can't PHPUnit UnitTest My Wordpress Website

I have been researching this issue for days and although many people ask this question I never found a clear and concise answer. I am running: PHP Unit: Version 3.7.21 WordPress: Version 3.5.1 OS: ...
1
vote
0answers
254 views

Google Apps SMTP for WP MultiSite?

How can you force WordPress MultiSite to send all emails via a Google Apps SMTP server? I have attempted to use Easy WP SMPTP, however that does not work exactly as I'd hoped, not to mention it fails ...
0
votes
0answers
307 views

Modifying the permalink href for posts with jquery

I Was wondering if there is any way to modify a link to add for example a category that I could use with $_GET. For instance, www.example.com/this-is-the-post/category (or ?cat=category) I've tried ...
0
votes
1answer
96 views

How to check “From Email” via WordPress before an email is sent

Is it possible to check an email from email via WordPress before an email is sent? I'm working on a phpmailer plugin to send WordPress email via Amazon SES (which requires all emails to be verified). ...
0
votes
3answers
411 views

Remove last comma from this query

I'm having trouble fixing this for working in ie8, i find out thats last comma is problem, but dont know how to fix it. this is current code. <?php $args = array( 'post_type' => 'katalog', ...
0
votes
1answer
6k views

How to display a paginated list of posts from one category on a page? [duplicate]

I'm trying to use the code from this page: Display Blog Posts on any Page (with navigation) http://digwp.com/2013/01/display-blog-posts-on-page-with-navigation/ My goal is to make pages that display ...
1
vote
1answer
45 views

Display post x of y within category

I'm currently using this class in my single blog posts to get a total post count and number my posts (post 89 of 90, etc...) class MY_Post_Numbers { private $count = 0; private $posts = array(); ...
0
votes
2answers
140 views

Using predefined html in new posts

I hope to make my life easy by doing this. I have 2 types of posts. On the first post I have a table and each post from the respective category will fill a table row. I will show you how a posts of ...
0
votes
2answers
2k views

How to exclude specific category from the get_the_category(); array

In my loop I've added: <?php $categories = get_the_category(); $separator = ' '; $output = ''; if($categories){ foreach($categories as $category) { $output .= '<span ...
0
votes
0answers
579 views

Remove 'More..' link from RSS feed

I believe this can probably be done with a filter, but haven't been able to find any info so far about it. We are pulling the description node from our RSS feed into some external properties. The ...
0
votes
1answer
143 views

Rename upload images during upload

I want to insert newpost on Front-end of wordpress. And i want to rename images name during upload for my code below Result like: "MemberUpload_dd/mm/yy_random_number_[width]x[height].jpg" (For all ...
0
votes
0answers
95 views

Wordpress show posts from children terms of a taxonomy term

I was a little hard for me to explain what I'm trying to achieve in the title so I will explain my setup much more detailed here. I tried to find an answer searching here and other sites but couldn't ...
0
votes
1answer
143 views

fetch_feed showing only first item

I'm trying to import a feed from a WordPress site to another using fetch_feed(). All is good except for the fact I can get only the first item of the feed. Here's the code I'm using ...
0
votes
3answers
226 views

Why I can download any file except PHP files from a URL but I can download any from another site?

all, I've been struggling with this for the past two days, I just can't find the answer - sorry if I post this in the wrong site but this is the best option I could think of. I have some problems ...
0
votes
0answers
73 views

Adding new product type in Jigoshop

I am customising the Jigoshop products and I need to add a new Product type to the drop down list when creating a new product. Choosing the new product type on the drop-down list should add a new tab ...
0
votes
1answer
215 views

updating one custom meta field only

i am trying to update only one custom field that is store in serialized form. By updating that field my other custom meta fields becomes blank/empty. how can i update only a specific meta value ...
0
votes
1answer
115 views

Ubuntu 12.04, Nginx and MySQL issue with Wordpress Database

Twice I installed a fresh LEMP Ubuntu 12.04 instalation on my server and started to build a wordpress site on my VPS following This tutorial. Now, for the second time, after a while I can't write do ...
0
votes
1answer
1k views

Template redirect template loaded, but the header 404

I've created a template redirect for a given url, ex.: test.com/test Test is page is not exists, i'm just checking the url from query_vars, if its match, i load the template with ...
1
vote
1answer
98 views

accessing parent variables in child construct without executing action in parent

I am quite probably going about this the wrong way, but I cant figure out how to rectify this.... would be great if someone could point me in the right direction. happy to provide more details if ...
1
vote
1answer
658 views

How to check what plugins used to be on a WordPress installation?

It's easy to see what plugins are currently disabled through /wp-admin — but how could I see what plugins used to be on an installation of WordPress and were deleted?
0
votes
0answers
34 views

What is the proper way to manage versions (with svn) of a theme we create?

I'm developing a theme and want to control its versions. Here is my development process but I'm not sure if it's proper or not. Please help give me suggestions. Trunk is the main and the latest ...
4
votes
2answers
1k views

Rewrite url for custom post type

I'm using WPML plugin to translate my site. I have a custom post type called "vinos" and I use this args: $args = array( 'labels' => $labels, 'hierarchical' => false, ...
3
votes
1answer
293 views

Using wp_cron with custom time interval and the register activation hook

Scenario 1: fails Adding a cron task wp_schedule_event with a custom interval on plugin activation using register_activation_hook outside the class definition fails to work because the custom ...
0
votes
1answer
217 views

do_shortcode within a shortcode

This may sound a little confusing but I'll try my best to explain. I've made a shortcode that grabs the content of a post (when given the id), it looks like this: $post_id = $id; $queried_post = ...
0
votes
0answers
57 views

Read more redirection problem

I have tried <?global $more; $more = 0;?> On pages and read more link shows but the full content is not shown. If I click read more it remains on same page. Logically I'm supposed to taken ...

15 30 50 per page