All Questions

0
votes
1answer
18 views

Unable to get all tags from specific categories

Page in question. I'm trying to use a WP_Query(); targeting specific categories and displaying all the tags used for posts within those categories. I noticed that some tags, like truffles aren't ...
0
votes
0answers
18 views

Wordpress login not working

Ok so i needed to add a new user to my wordpress site DreamersCorp.org. When registering in the wp-admin screen it worked. I then proceeded to login and it failed. I then reset the password. I once ...
0
votes
1answer
25 views

Add something after all sticky posts in The Loop

Let's say I've got some posts and some of them are sticky. The sticky posts are displayed at the very top in The Loop. while( have_posts() ) { the_post(); get_template_part(); } How can I add ...
0
votes
1answer
24 views

Why is including all your files within a theme folder important?

Alright, I know it is important. It keeps things organized and allows you to port your theme over pretty quickly without any problems. However, I have another developer who does this frequently, ...
0
votes
0answers
17 views

Enqueue custom jQuery UI theme to override Google CDN theme

I'm trying to override the jQuery UI theme that wordpress enqueued from Google CDN link but I have not found a solution to my issue. I have my stylesheet enqueued correctly in my plugin but the styles ...
0
votes
0answers
37 views

Integrating Code into Wordpress - URL issues

I am taking a form that has been created and now trying to incorporate it into WP. The form is filled out multiple times per session. The form when filled out will generate an ID that is used to track ...
0
votes
1answer
24 views

Missing images after moving servers

I cloned an inherited WP Multisite and have got it up and running thanks to advice in a this and this previous questions. Things are moving along with the exception of images. Missing Images On ...
0
votes
0answers
11 views

Special characters in image url stripped out with wp_get_attachment_url

I've got a plugin I'm working on and I need to access an attachment image. I've been using either wp_get_attachment_url() or wp_get_attachment_image_src() to get the slug for the image. It's been ...
0
votes
0answers
31 views

Use jQuery and AJAX to get HTML

I have a jquery function in my theme that should send an array of filters to a PHP file, which should then return a piece of HTML with the filtered posts (it then replaces the contents of a ...
0
votes
0answers
13 views

how to place page navigation on a specific page at the end of posts from specific category in thesis theme

In single page of wordpress site I am trying to show 10 posts from a specific category. At the end of the list of 10 posts I want to show page navigation so user can navigate to old posts of this ...
0
votes
1answer
19 views

Display all meta for a post?

I have a custom meta field for my posts and I'm able to display the value. But it only displays one row. Since I have more than one value I need to display all of them. I know I probably have to do ...
0
votes
0answers
27 views

get_post_meta() cannot return values from nested arrays

I apologize if this question was answered on here. I searched and could not find an answer that related to my own issue. I've been turning my wheels on this for three days now and am now seeking ...
0
votes
2answers
18 views

Multisite, can't see sub blogs

Based on advice I got from another question, I created a development copy of a multisite installation I've inherited inside of a Vagrant VM. On a test site as described here... I get an error ...
0
votes
0answers
25 views

return wp query results in a shortcode

I am using wp query results in a shortcode, and right now I am echoing out the stuff I need, or just using wp functions (title(), the_content() etc.). The problem is, if I put that shortcode in a ...
0
votes
0answers
22 views

setcookie in functions.php does not accept arguments (variables) passed from WordPress page

I have a WordPress installation where a page (Page 1) displays certain fields from a selected user's profile (Not the logged in user but a user they have selected). A PayPal button is used to take a ...
2
votes
0answers
16 views

How to get profile user id when uploading image via media uploader on profile page

I have a PlugIn which lets a user upload an image to a user profile in the backend. Now I want to access the user id in the uploader to change the filename of the uploaded image. On the user profile ...
0
votes
2answers
51 views

Get shortcode from the content and display it in other place (in sidebar, for example)

I have a shortcode: [content_block] If that shortcode exists in content and has the attribute position=top, I would like to remove it from the content and display it in other place. For example, in ...
0
votes
1answer
10 views

admin_head-post.php only works after publish / update

I have made a custom post type with some admin back-end. Currently I am calling scripts using the hook admin_head-post.php but this only seems to fire once a custom-post type has been created (on ...
0
votes
1answer
19 views

Show sticky blog post on homepage

Is there a bit of PHP I can use to grab the sticky blog post (there will only ever be one) to drop into my homepage template file?
0
votes
1answer
25 views

Get all posts with a certain meta key, except for one with specific title

I need to return all posts with post_test_safe == 1 and exclude one with title ="Special title" Some kind of combined meta query but haven't got anything to work. function getAllPostIdsTest(){ ...
0
votes
2answers
29 views

Apparent errer when installing plugin

I have been working on my first plugin (call is myplugin). The path to the plugin code is wp-content/plugins/myplugin/myplugin.php. The myplugin.php file is essentially as follows: <?php ...
0
votes
1answer
27 views

Translating wordpress plugin

Ok i built plugin for contact form, I wanna add translation for it. In my main plugin files i add this code function ap_action_init() { // Localization load_plugin_textdomain('prijava_forma', false, ...
0
votes
1answer
22 views

Can't sort custom column on user.php by number / meta_value_num?

everything else works fine but it's still not sorting by number. Would just like to know what I'm doing wrong here Here's the code function add_user_columns( $defaults ) { ...
2
votes
0answers
27 views

add_rewrite_rule, plugin activation and plugin deactivation

I see a lot of example showing to call add_rewrite_rule in your init hook, e.g. function add_my_custom_rewrite() { add_rewrite_rule(... } add_action('init', 'add_my_custom_rewrite'); and in ...
0
votes
1answer
19 views

Worpress url parse

I want to display posts in certain category only with given tag. Problem with parsing url slugs. For example, I have category named 'Clothes': example.com/clothes/ I can get posts in this category ...
1
vote
3answers
33 views

WP Query post meta value

I'm trying to get posts which have applied the meta value trainees. $args = array( 'posts_per_page' => -1, 'orderby' => 'post_date', 'order' => 'DESC', ...
1
vote
1answer
17 views

Set the background to a default image if there isn't a specified “featured image”

I am having a little trouble displaying a default image as a background image when a feature image is not present. This is the code I am using <?php if (has_post_thumbnail( $post->ID ) ): ...
0
votes
0answers
29 views

Multiple post types

I'm using the "Types" plugin for Wordpress to create two custom post types and it works fine. I built custom templates on the base of archive-slug.php where the "slug" is the post type slug. It ...
0
votes
0answers
13 views

How to center an array of thumbnails? [on hold]

I am creating our new page based on wordpress an i am creating an own theme. It should be responsive so i can ot work with a specific width of my site at all. It works quiet good expect one thing. I ...
0
votes
1answer
36 views

Exclude categories For Custom post types

I have category 1, category 2, category 3, to category 7 and custom post types Gallery, Article, Front Row.. How can we restrict the admin to choose the category for custom post type Gallery to Cat ...
0
votes
2answers
86 views

create single.php for specific category by category id

I'm trying to create template for specific category with id 1 for example. The template should be applied to all of the pages belongs to this category. So, it should be something like single-1.php. I ...
-1
votes
0answers
17 views

AFC Relationship query not working via AJAX [on hold]

I've got a ACF Relationship query on a page thats is working well on page load. It gets the first 3 related post and outputs them. Under that I have a "See All" button that makes an AJAX call to get ...
0
votes
1answer
25 views

Creating dynamic pages from custom table including location and map [on hold]

For a non-profit project I hope to get recommendations for a possible solution. I am building a site with pages dedicated to individual locations (potentially with subpages with galleries with images) ...
0
votes
2answers
22 views

get_terms: determine if taxonomy term has children

I'm looking to determine if a taxonomy term has children. See the below markup and I'll explain what I mean: <?php $terms = get_terms("wpsc_product_category"); if ( !empty( $terms ) && ...
0
votes
1answer
23 views

Later change of taxonomy slug base not changing permalink

When defining a taxonomy I successfully set the slug base for it as well, all via functions.php. However, any change on the slug’s base (via editing functions.php again) is being recognised, i.e. it ...
0
votes
1answer
8 views

fetch_feed works on localhost but not on server

There is one similar question, but I can't seem to get round to what's going on. So any help appreciated... The following code works just fine on localhost, but when on the live site I get the ...
-1
votes
0answers
6 views

Automatic detect my website url in the post and replace it with shortcode for embedding

I've already followed the official doc to add support for custom shortcode and it seems pretty simple. Now I would like to add another feature to my plugin in order to automatically detect links to ...
0
votes
1answer
23 views

Best way to hook a custom url?

Let say I've a custom page with slug created "/products", I want user will be able to POST to a form with url "/products/create" and allow us to render some JSON output. The "/products/create" page ...
-1
votes
0answers
11 views

Breadcrumb-NavXT

i have issue with the plugin Breadcrumb-NavXT , when i enter CPT single page , the breadcrumb don't show up its parent category rather than that it show archive page for parent category like this ...
0
votes
1answer
11 views

get_category_link returning page URL

I am using the following code to display a list of categories in a custom taxonomy, except the URL returns only the current page URL. <?php $category_ids = get_all_category_ids(); ?> <?php ...
0
votes
1answer
17 views

Translating wordpress plugin

I built contact form plugin in in wordpress. I am planing to translate field name to diffrent languages. In that cause i will use Poedit. My question is does wordpress has some language options in ...
0
votes
2answers
8 views

Custom Roles for access to specific term(s)

I'm looking to create a membership-only site which will serve to display logged-in users their company's stored documents. I have a custom post type named Boxes. I have a custom taxonomy called ...
2
votes
2answers
41 views

How to schedule multiple posts while adding new

In a WordPress powered news portal, they need to upload many news at a time on a certain period of a day, in most of the cases, after 10pm (today). But they are actually inserting news for the next ...
-2
votes
1answer
30 views

Self-hosted Plugins & Themes store with auto-updates? [on hold]

I'm looking for a way to self-host a WordPress Plugins/Themes store (ideally at no cost — I am but a poor developer!) with the following features: Sell Plugin/Theme downloads Auto-updates for sold ...
1
vote
1answer
34 views

Paginated pages are showing correct content but pagination links are not

I am using a custom WP_Query to display posts on static front page. and generating numbered pagination links with paginate_links functions. This is the code I have... $latest_args = array( ...
-2
votes
0answers
5 views

Creating custom woocommerce's custom shortcode for login form [on hold]

Hi i am looking to create a custom shortcode for woocommerce's my account page that will only call in the login and registration form and want to implement that to ubermenu plugin for a drop down form ...
0
votes
0answers
7 views

What's wrong with wp_filesystem delete()?

I noticed something odd recently, the wp_filesystem delete() doesn't work in many cases, and surprisingly, wp_delete_attachment actually doesn't even use wp_filesystem, but uses unlink. What is the ...
0
votes
1answer
20 views

How to allow a custom user role to create, edit, delete a specific custom post type only?

I created a custom post type called Traveller Post using the following code snippet: /* custom post - traveller posts */ add_action( 'init', 'traveller' ); function traveller() { ...
0
votes
0answers
15 views

posts_per_page not returning correct number of posts

$queryArgs = array( 'post_type' => 'recipe', //'orderby' => 'menu_order', 'orderby' => 'date', 'order' => 'DESC', 'posts_per_page' => 10, // 'posts_per_page' => -1 ); ...
0
votes
0answers
52 views

How to use Cookie or Session php for one page and just a password

I'm looking for to use a cookie with wordpress 4.0 and it doesn't work.( OVH) I have read that Session or Cookie are deactivate by default inside the load.php folder. Somebody could tell me how to ...

15 30 50 per page