0
votes
3answers
1k views

Password-protected Posts lead to 404 Error

I was just testing the password-protected posts functionality and when I submit the password it sends me to a 404 page. The password I typed in was correct, I made sure. The URL bar says: ...
3
votes
3answers
5k views

How to find attachment ID for first image in a post

I am using a plugin to forward photo posts from wordpress to a tumblr blog. I have the following code: //post blog to tumblr function postBlogTumblr($postID) { $URLServer = ...
1
vote
0answers
1k views

How to change “attachment_id” in attachment permarlink?

I changed attachment permalink by add_filter('attachment_link','my_media_url'); from http://domain.com/?attachment_id=123 to: http://domain.com/?media=123 The change is successful. But, with the ...
0
votes
0answers
8 views

How Can I use WPUF Pro for storing values in one other plugin

First of all i want to say i am a nob in this field of PHP coding. However, I collected some pieces of code that if some professional make some edits, it will be of great help to me. I have a plugin ...
0
votes
1answer
6 views

How to Submit Contact Form 7 Values to Agile CRM

I am trying to capture the email value from one of my contact forms and call my Agile CRM javascript API so that it creates a lead in the CRM. In the additional settings of the form I have ...
0
votes
2answers
361 views

Get ID of child from child slug, while knowing parent ID

I have a hierarchy that I need to get data from. It's the child (by slug name) that I need to get while already having knowledge of the parents. Highest Known Parent Page (slug : 'parent') |_ Child 1 ...
2
votes
2answers
71 views

How to show in search results posts with a particular tag in a particular category?

As the home page of my blog I've a static page. There I want to show the navigation of the site. Category1 Sub-Category1 tag1, tag2, tag3 Category1 Sub-Category2 tag1, tag2, tag3 ...
0
votes
1answer
758 views

Create an user on external database

I have wordpress site and a project management system from codecanyon. Here is the link I have disabled registration for users in project managment system, only login is enabled. I need to make users ...
0
votes
0answers
8 views

Post count is wrong in all categories on backend and frontend

Admin area is showing wrong post count for all the categories (and I have 300+) It's showing more posts than they actually are, even for new categories with no posts at all shows like 5 or more. I ...
1
vote
0answers
28 views

How to query all posts of a specific category, and any other category combination

Basically, I'm looking to query all post of category 'news', and any combination of other categories to display as Related News on single content type pages. So, if someone writes a post, and ...
0
votes
1answer
13 views

How to remove WP Title Tag?

I have add custom title tag for a custom post type in header.php like this if(is_singular( 'news' )){ global $wp_query; $postid = $wp_query->post->ID; echo '<title>'. get_the_title() .' ...
0
votes
1answer
17 views

Is it possible to query the result of a query?

I'm not sure if the is even possible, and couldn't find an answer, so I figured I'd ask on here. Basically I want to know if it is possible to query a query result? What I want to do is query for ...
0
votes
1answer
423 views

textarea_name is not working with wp_editor

I used to use a normal textarea and tried to change wp_editor on front-end. <div class="small-12 large-12 columns"><textarea name="post_content" rows="10" cols="20" placeholder="Briefly ...
0
votes
0answers
16 views

Add Item to Custom TinyMCE Menu

I've created a custom menu which appears on my TinyMCE toolbar but would like to add another item to that menu in a separate function elsewhere in my plugin (depending on whether some other ...
0
votes
0answers
9 views

Woocommerce tree menu not saving categories

I've converted the Woocommerce category structure to a tree in a different plugin, where on click, the next level of categories are shown. When the categories are at base (so no categories ...
1
vote
1answer
885 views

Pagination in a Shortcode. Get_next_posts_link not working but get_previous_posts_link works fine right next to it

I'm trying to output a custom post type archive using a shortcode. Everything works fine except for the get_next_posts_link part. The weird part is that it's right next to a get_previous_posts_link ...
-1
votes
0answers
22 views

ERROR : The plugin generated 3 characters of unexpected output during activation

I got this error when I install my plugin that I build recently, I read on some article that it is due to BOM or something like that but I don't get it. How can I solve this problem? The plugin ...
-4
votes
0answers
19 views

How to add custom fields to a form?

How do you add custom fields to a front end form which is for post submissions.For example if a there's a custom post type named "events" and there are custom fields applied to it.The front end form ...
-2
votes
0answers
21 views

Convert My Code's In To Metabox

I have the following PHP: // define variables and set to empty values $gname = ""; if ($_SERVER["REQUEST_METHOD"] == "POST") { $gname = test_input($_POST["gname"]); } function test_input($data) ...
-2
votes
0answers
10 views

Is it possible to connect this Booking System PRO plugin to Google Calendar? [on hold]

How to connect a Booking System PRO wordpress plugin to Google Calendar ? Please provide any suggestion. Thanks.
2
votes
1answer
2k views

order by numeric value for meta value

I have read countless posts on ordering data by numeric value ( as opposed to string - it i have a numeric meta value and it gets ordered like this 1 11 12 2 233 etc as opposed to the way i want it I ...
-1
votes
0answers
6 views

buddypress add order by from user metadata

hello i need in MEMBER page in buddypress add to ORDER BY function one more option. so i have in my site user metakey _thumbs_rating_pozitiven here is saved number from 1-100. so i need now to order ...
1
vote
1answer
40 views

Current user in plugin returns NULL

I am currently developing a plugin and I am trying to make use of the $current_user global. class Something { public function __construct() { $this->get_user(); var_dump( $this->user ...
1
vote
2answers
25 views

How to use output buffering in Wordpress hooked functions?

It doesn't seem that output buffering takes into account echo's from within hooked functions. function buffer_start() { ob_start(); } function buffer_end() { ob_end_flush(); } add_action('init', ...
0
votes
1answer
2k views

wp_query->max_num_pages always returns 0 on custom post type

Hi there I am developing a theme where I have to load some posts with ajax, in my index page everything works properly, the problem is when I need to use it on custom post type, I pass the values for ...
0
votes
1answer
17 views

missing attachment are showing as 404

In Google WebMaster Tools the crawling errors page is showing 177 missing urls. Most of them are showing as ?attachment_id=xxx I have looked in the database for these id's in the wp_posts table but ...
0
votes
0answers
9 views

whats the best practice to make specific links accessible in theme?

I have a bunch of links I need to reference in my custom theme. Since it should be flexible and the page is also translated (using WPML) hard-coded links are not an option. Right now I use registered ...
0
votes
1answer
79 views
+50

How to iterate within Magic Fields Group foreach loop?

Okay so I'm using Magic Fields 2 on an old WordPress project (rather than ACF unfortunately) and I've got some confusion happening while I'm writing PHP. Basically I'm on a page template that calls ...
1
vote
1answer
513 views

How to reduce the number of queries?

I have meta key "Due" for posts....if a post has expired (past the current date or not equal to it) then it will not be displayed in the count. This is my code, which works perfectly. My only problem ...
0
votes
0answers
16 views

Increase Page Title Font Size

Site: http://tkhrepair.com/business-services/ I'm trying to make the font where it says Home / Business Services larger, I wanted it around 16px. I've tried using Inspect Element for find it, but to ...
0
votes
1answer
20 views

Add Button to TinyMCE Custom Menu

I've added a new button with a menu to the TinyMCE visual editor using this tremendously helpful tutorial but would now like to add further items to this menu depending on whether various post types ...
1
vote
3answers
515 views

Unable to get wp_redirect() working after adding a CPT via the front end

I am attempting to learn PHP by creating a relatively simple application built on wordpress, it is a basic CRM and I've made decent progress but have been stuck on some of the finer points. I've been ...
0
votes
0answers
4 views

W3TC recreating cached files, but not uploading them to our CDN. We didn't request the recreation

We're having a weird problem on our production server. We use w3tc to compress and upload CSS and JS to our amazon CDN. After clearing all caches on the site, it works fine initially, then sometime ...
-1
votes
1answer
33 views

Get all post from custom post type in custom taxonomy

I am trying to display a custom post type that has custom taxonomy, but I am not having any luck. Nothing is showing up. I appreciate any help. Post type = banner Custom Taxonomy = country The ...
0
votes
0answers
9 views

Custom Menu Item Unnecessary Padding

I am trying to add a simple Back button to all pages on my WordPress site that are not the front page. The code is working and the functionality works but the link itself is adding some unnecessary ...
0
votes
1answer
585 views

Sort All Posts by Category Name in the Admin Panel?

I'm working on a pretty complicated site where everything is managed by category type including automatic spinner image submission, etc.. Unfortunately, its doggone difficult to manage things when the ...
0
votes
0answers
6 views

Adding an Area Code to a Telephone Field within Contact Form 7

I am using the Contact Form 7 plugin within my site that consists of a telephone field, i.e.: <p>Your Contact Number (required)<br /> [tel* your-tel]</p> My question is and ...
-1
votes
1answer
24 views

How can I insert a record into a custom table from my custom form in my custom admin page?

I'm struggling with this one and all of the relevant links to the codex, articles and forum posts (stack or otherwise) that I've searched haven't helped. I can best describe my problem as attempting ...
0
votes
1answer
13 views

How to override the title tag for woocommerce endpoints?

I am trying to set the title tag for Woocommerce pages that have endpoints. I am using Yoast SEO and so far have created this: function woocommerce_endpoint_titles( $title ) { $sep = ' | '; ...
7
votes
2answers
533 views

How to make “Upload files”selected by default in Insert Media?

I am frustrated having to click on the "Upload Files" constantly instead of the first choice being Upload Files in posts editor....How can i make “Upload files” selected by default instead of "Media ...
0
votes
0answers
11 views

one category template for diferent <option> values and sub categories

I have the default category.php template and my categories structure is like this: category sub1 sub2 sub3 sub4 sub5 Now what I want is on each subcategory to add ...
0
votes
1answer
343 views

Transfer taxonomy to custom field

I have a blog with movie critics and I'm using many taxonomies to add some informations about the movies, like director, actors or it's year. Using taxonomies is really useful to display all movies ...
0
votes
0answers
8 views

Use Cornerstone Plugin outside of Wordpress Dashboard

All, At risk of having a plugin specific question I feel that it could be beneficial for a lot of others as the X theme has sold a lot of copies and I believe quite a few people use it. The theme uses ...
-1
votes
0answers
6 views

Blog not updating on my website

I wrote a piece on my blog; however, it did not update onto my website. To be clear, the piece (and images) are visible on my wordpress blog, but not on my website. Have had no problems up to now. Is ...
0
votes
1answer
24 views

How to change compression of Wordpress uploads including original image

We are currently using this to change the compression used on jpgs when uploaded to the WP media library: add_filter(‘jpeg_quality’, function($arg){return 75;}); However, this does not compress the ...
0
votes
1answer
17 views

Rewritten URL not loading WordPress environment

I have a page that I am sending users directly to so I can serve them a PDF dynamically created using the FPDF library. Since I'm sending them directly to the file which generates the PDF, I'm ...
0
votes
1answer
331 views

Display featured products by category

I have this code in my themes' shortcode to display featured product rating product like this. But I need to get product by category show. Which code do I have to add. Any suggestions? if($type == ...
1
vote
0answers
15 views

Sortable product selector

I am currently trying to find the best way to implement a 'sortable product selector' into a WordPress site. The best way to describe what I am trying to achieve is by uploading screens as an example. ...
4
votes
1answer
42 views

How does WordPress Multisite know that a Plugin is installed?

I am running a WP Multisite Network. I am curious to know how WordPress knows that a plugin is installed on a network site: how does WP know that a plugin is Network Activated? how does WP know ...
-1
votes
1answer
21 views

Content disappearing when trying to edit

When i click on a recently migrated blog to edit any of the posts, all of the content disappears. I read the previous post where some database info was given but I do not understand it. There was a ...

15 30 50 per page