0
votes
0answers
2 views

Query posts by a type and another type only if post is in specific category

I have a featured post type and a reviews post type. I would like to include reviews of a certain category (I use categories from the posts type) as well. Does wordpress allow this type of query? ...
0
votes
0answers
2 views

Editing post in admin panel

I have a front end posting form. Everythings work nice, but the custom (meta) fields i added in the form doesn't appear in admin panel post edit? I add them with add_post_meta() function. Any ideas?
0
votes
0answers
5 views

Wordpress editor strips out anchor tags when they appear on their own line

In the text below, when I toggle the WYSIWYG view from Visual to Text, the anchors are left intact. However, when I switch back to Visual, the anchors are replaced with   elements. This is ...
0
votes
1answer
16 views

Order post type by sum of two custom fields

I have a custom post type for vouchers. I've added two custom fields to this post type named "value_1" and "value_2". They both contain a number. (The first value will be applied at checkout, the ...
-2
votes
0answers
5 views

Deactivating Facebook for multi-site is forcing reactivation site-wide?

I am connecting to a remote MySQL database of my WordPress website using SSH and MySQL-workbench, and have found "key 32228 - facebook activated - wp_databasetab3_changes_tracker". Can I deactivate ...
1
vote
1answer
27 views

Wordpress function/template tag to get first n words of the content

OK, this might be a duplicate, I was just unable to put my idea in proper search terms, sorry for that! Is there a built-in function or template tag to get the first n words of the content? I mean ...
-1
votes
0answers
11 views

How to show my plugin on my blog page? [on hold]

Im using this plugin that shows social icons under every post in my blog. My blog page shows the content of the post not the excerpt. How do I make the plugin to show in my blogpage under every post? ...
0
votes
1answer
18 views

display post tags on single.php inside loop

I want to display the tags of the current post in the single.php and do the following: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <h1 class="single_h"><?php ...
1
vote
1answer
8 views

When to use wp_schedule_single_event for async / non-blocking processes?

I have noticed this pattern in some plugins lately: <?php function MY_CRON(){ wp_schedule_single_event(time(), 'MY_ACTION'); } add_action('save_post', 'MY_CRON'); function MY_FUNCTION(){ // ...
0
votes
2answers
20 views

Does an article (post) id ever change?

So I'm working on a plugin for wordpress, and a novice at it as well. I need to use the ID of a wordpress post, or blog article rather, as a unique reference id, or lets say in database terms, a ...
0
votes
0answers
24 views

How to separate HTML and Wordpress files

I want to separate the HTML and PHP code so that the HTML guys can easily work on their files without disturbing the PHP code, but couldn't find any proper solution or Start point to begin. Please ...
0
votes
1answer
23 views

Create Logout Link Wordpress Admin Menu

I'm looking at creating a Logout link in the Wordpress admin menu that when clicked the user is logged out immediately. I don't want the Logout link to be a submenu of an existing menu, I just want ...
0
votes
0answers
6 views

reload page when change option of select field in gravity form?

Thanks in advance. I want to refresh my form when anyone change option in select field. Please help me. I am new in gravity form. I am try my best but not able.
-3
votes
0answers
29 views

How much salary a Wordpress developer can get? [on hold]

How much salary a Wordpress developer can get?please tell.Thanks. I just asked as i work on Wordpress ,And wordpress is not having that much glamour as iOS,JAVA,Android.
0
votes
3answers
32 views

How can I conditionally show different home page templates based on whether or not the user is logged in?

How can I conditionally load HTML for the home page based on whether or not the user is logged in? Currently my theme has an index.php file. In that file I tried to create: <?php ...
0
votes
0answers
12 views

Inserting posts to database

I want to import a bunch of posts directly into the database and I'm wondering how I can do this? I found this script ...
0
votes
0answers
10 views

WPMU - SuperAdmin / plugin install permissions

let's suppose I have Wordpress Multisite install and I have there SuperAdmin. I need to restrict "install_plugin" capability in Network Admin for SuperAdmin mentioned above. How can I do that? I ...
-1
votes
0answers
13 views

Wrong picture from Wordpress to Facebook post

I have a blog (paidis.com) and almost everytime I publish something on Facebook, Facebook gets a wrong picture. I was trying to solve this but I couldn't, so I was using the option "upload another ...
0
votes
1answer
9 views

When is get_currentuserinfo() needed?

I know you usually call it inside functions after global $current_user, but sometimes it works whether you have it or not. So what are the conditions where is it needed? Sample code: function ...
0
votes
0answers
13 views

prevent same wordpress post title

I am working on a wordpress site where users can submit there own posts. I would like to prevent users from adding a post with the same post_title This is how i currently check to see if the post ...
1
vote
1answer
16 views

Custom Post Type doesn't show Draft and Trash Options

I have custom post type "Pdf"section.But there is no options like Draft and Trash..
-1
votes
0answers
6 views

Woocommerce free shipping based on payment gateway selected [on hold]

I'm trying to get free shipping available when a certain Payment gateway is selected. So I've got 2 payment gateways: if Payment gateway 1 selected --> With shipping costs if Payment gateway 2 ...
0
votes
0answers
7 views

Field input value as a label in gravity forms

Q: Is it possible to use a input value from one field in a label from another field. With computed fields it is possible to reuse values from one or more fields in other fields. Say a field sum ...
0
votes
0answers
23 views

How to get to blog flow and a specific post?

How do I get to a specific blog post in the flow without getting inside the specific post? I mean from my homepage i can see a excerpt of the post. When i click on that post i come right to that ...
0
votes
1answer
11 views

Wp_Mail and Contact Form 7

I have a problem. I've used add_filter('wp_mail_from', 'new_mail_from'); add_filter('wp_mail_from_name', 'new_mail_from_name'); function new_mail_from($old) { return 'contact@mysite.hk'; } ...
0
votes
1answer
22 views

Fatal error: Cannot redeclare when switching themes

I've built a theme from scratch which is named "core". Core has a child theme called "core_child". My child theme works perfectly and only contains the following: /images screenshot.png style.css ...
0
votes
0answers
8 views

Start WP Pagination From Number 1 in URL

I am using this code to paginate gallery post type images: $images = get_posts(array( 'post_type' => 'attachment', 'post_status' => 'inherit', 'post__in' => $image_ids, 'orderby' => ...
-1
votes
0answers
9 views

Need Help with finding the right registration plugin [on hold]

Im looking for a plugin that can make users register and that the registration information get send to the admin´s email. So the admin can accept their acces to the rescricted area´s. Thanks in ...
0
votes
1answer
10 views

Organize media uploads in folders - I have a physical access to (my) server

I'm very new to Wordpress. With the help of my friend I installed Wordpress on my server and finally we have our web online. However, I would like to upload some content in media library but I need to ...
0
votes
0answers
8 views

wp_insert_post another database with custom field

wp_insert_post with the command you want to transfer the contents to another database, I use the following command <?php require('wp-config.php'); $conn = mysql_connect($dbHost, $dbUser, ...
0
votes
0answers
8 views

the_post_thumbnail scaling not hard cropping

Lately I wanted to upgrade my blog with featured images/post thumbnails. I'm using a custom theme build on the roots theme (this is not a roots theme issue, I believe). The image I upload is 1024x768 ...
-1
votes
0answers
14 views

Error retrieving a list of your S3 buckets from AWS: Access Denied [on hold]

I am using Amazon S3 and CloudFront plugin. I have setup the plugin as instructed. But getting the error in AWS area of dashboard. Error retrieving a list of your S3 buckets from AWS: Access ...
-1
votes
1answer
12 views

Can't get Category link inside get_posts

I created a simple function to display the latest posts. Inside the function there is a conditional to display the post category. I found that to display the category name, using $category = ...
0
votes
0answers
11 views

Title Page reverting to homepage

Whenever I add or edit a new page, the page title automatically switches to the same title that's used on my static homepage page. If I change the title to what I want it to say, it reverts back to ...
0
votes
2answers
17 views

How to change default header image dimensions in twentyfourteen child theme?

I'm creating a child theme based on twentyfourteen and wish to change the custom header image dimensions. The custom header page states: Images should be at least 1260 pixels wide. Suggested width ...
0
votes
0answers
16 views

Wordpress Contact 7 , make Conditional Email Body

Hello i am using Contact 7 form plugin. I get option to have HTML body for email template like <table> <tr> <td width="17%" align="left" valign="top"><span ...
0
votes
0answers
15 views

Page/Post path in Search Results

I have lots of pages with similar titles which may be confusing when users search for something. To help them tell apart the pages, I'd like to add the page/post location (path) under each page/post ...
0
votes
0answers
16 views

Good tutorial to get started with advanced wordpress plugin development? [duplicate]

Ok I saw many of the tutorials that allow you to introduce a shortcode. Well that is not what I am looking for. I actually want to extend the backend with a way to allow a second title. At the moment ...
0
votes
0answers
7 views

The plugin assign to the wrong place (layout problem)

<?php /* Plugin Name: Push notification Plugin URI: http://wordpress.org/plugins/temp/ Description: No description Author: Temp Version: 1.0 Author URI: http://ma.tt/ */ // This just echoes the ...
0
votes
0answers
8 views

Adding new menu items with wp_nav_menu_items

I am trying to add menu items dynamically using the wp_nav_menu_items filter. What I am doing is working fine on two of my menus but I cannot make it work for the third. Code to register the menus: ...
0
votes
1answer
9 views

how to remove Genericons Helper CSS from twentyfourteen theme

I'd like to remove the genericons-css styles loaded by default into twentyfourteen theme. <link rel='stylesheet' id='genericons-css' ...
0
votes
1answer
18 views

Top admin bar / toolbar not showing even when logged in, but empty top margin showing?

I wrote a theme and the top admin / tool bar is not showing. I still see an empty margin. Any ideas? Here the top margin I never set anywhere in my files. I actually want to show the toolbar ...
0
votes
0answers
3 views

Woocommerce: Set variable default selection to lowest price [on hold]

By default, cart button and price are hidden and when you select variations, they appear. And if you want them to appear you have to go through each product and set default selection. Does anyone ...
0
votes
0answers
8 views

How to query categories with Advanced Custom Fields?

I'm currently using Advanced Custom Fields and I was wondering if anyone know how to filter categories by custom fields? I have a custom field in my categories using the checkboxes field. I want to ...
0
votes
0answers
9 views

Order wp-admin posts by ID instead of post_date

I'm running into a situation with my log system (based on a cpt) where logs with the same post_date (due to rapid entry) are showing up out of order on the posts listing section in edit.php. You can ...
0
votes
0answers
10 views

wp_dropdown_pages in widget form

I have a small quirk somewhere in my widget form. Upon saving the widget instance, the form refreshes with the wrong selected 'page_id' from the wp_dropdown_pages input. If I refresh the widgets page, ...
0
votes
0answers
8 views

Add a Settings Section to the Middle of an Existing Page (add_settings_section)?

I am wondering if it is possible to add a settings section (add_settings_section) to an existing page but to have it in the middle of the existing sections. For example on the existing "Discussion" ...
0
votes
0answers
14 views

Developing a plugin, ran it through P3 Profiler, shows up slow, but I don't know why

I am having an issue with my plugin I'm developing. After using the GoDaddy P3 Plugin profiler, it shows that is taking up a large amount of runtime, but the plugin itself is very minimal. It just ...
1
vote
1answer
33 views

Making Quote Plugin more efficient

I've been working on this plugin the past couple of nights and have been jotting down idea's of how to improve it. My knowledge of php isn't the strongest and I'm learning as I go along most of the ...
0
votes
0answers
10 views

List Categories in Custom Order

I'm using this code: <?php wp_list_categories('include=19,20,21,22,23,24&orderby=date&title_li=<h4>' . __('Prices') . '</h2>' ); ?> But it's not displaying categories in ...

15 30 50 per page