0
votes
1answer
19 views

get_page_by_title() doesn't retrieve my post

I have a CPT called "patchwork" and I created a post of this type entitled "Patchwork 01". The following code should retrieve this post, but it doesn't. $patchwork = get_page_by_title( 'Patchwork ...
2
votes
2answers
87 views

Delivering a file instead of wordpress page

I'm trying to make a page where a user provides an ID of a attachment and the site will set the headers and deliver that file instead of a 404 page. so /download/1754 would lookup the attachment with ...
2
votes
1answer
86 views
+50

How can I diagnose a slow Wordpress admin?

Over the past few months the admin pages on my wordpress multisite site (around 80 sites) have been taking around 20 seconds to load. I am running the latest version of wordpress (version 4.1). ...
0
votes
1answer
14 views

Visting slug for 'post' post type shows 404 not archive?

I'm trying to get the WP default post type 'post' to show under the slug of /news/. I've changed the permalink structure to /news/%postname%/ which is fine when visiting a single page, however when I ...
0
votes
1answer
6 views

MultiSite Move conjures duplicate URL

I just tried to do a very painful move of a multisite. I thought I had everything working until I clicked a blog link on the MAIN site and I was greeted with a duplicate url. Something like this ...
0
votes
0answers
17 views

Same content on home and single pages. Duplicate content? [migrated]

I'm creating a portfolio site where I have a set of links on the home page and each link calls its respective post via Ajax. When a post is called, a hidden div gets populated with the response and ...
0
votes
1answer
15 views

Multiple archives to display parent and subcategories content

I am developing a plugin with custom types and my problem is that I need to display an archive of a selected subcategory (selected from a parent category) and in the page display some events of that ...
0
votes
1answer
30 views

How to get post_content while the post is being edited

I'm building a plugin that uses custom posts. The custom post uses metaboxes but some of the meta fields need information typed in the post editor. I'm trying to use post_content to retrieve ...
0
votes
1answer
11 views

Two menus show up

If I set 'echo' parameters value to 'true': <?php if( has_nav_menu( 'primary-menu' ) ) { wp_nav_menu( $menuParameters = array( 'theme_location' => ...
0
votes
1answer
36 views

Add routes between multiple ACF google maps markers [on hold]

I dug up this code from the ACF examples for Google maps markers: .acf-map { width: 100%; height: 400px; border: #ccc solid 1px; margin: 20px 0; } </style> <script ...
-1
votes
1answer
38 views

creating pages from plugin

I am writing up the plugin for purpose of reserving a workspace. So far, I have written the login script and registration script. It can be found here. I am directly printing the page content on the ...
0
votes
0answers
15 views

Permalinks problem: Error 404

I have a problem with my Wordpress Permalinks. Except the first page, when I click a link, I always get the error 404 Object not found. I mention that i have mod_rewrite in Apache set to true. ...
0
votes
1answer
15 views

WordPress Search return wrong results

i limit the search in my WP blog to be within post only by adding this line <?php if (is_search() && ($post->post_type=='page')) continue; ?> So any results from static pages will ...
0
votes
1answer
12 views

Multiple categories for one menu item?

I have six categories: Seasons Categories: Spring Summer Fall Winter Collections Categories: Formal Wear Night Wear Ready to Wear Sports Wear I need to put them up in the navbar custom menu ...
0
votes
0answers
14 views

Add “New” label to post not older than 24 hours [duplicate]

I did not found many results when searching in Google and the items that I found did not help me very much. How can I add a label "New" to posts that are not older than 24 hours? Is there a function ...
0
votes
1answer
22 views

How to create a profile page for specfic / custom user role members?

I am trying to create a profile page for every user if his / her role is a custom role. Ive created a custom role in my site. Now this is the default role is assigned to the members when they ...
1
vote
0answers
18 views

Selecting specific posts with an if statement in a counted loop [migrated]

I'm currently counting the posts in the loop... <?php $count = 0; ?> <?php /* Start the Loop */ ?> <?php while ( have_posts() ) : the_post(); ?> <?php $count++; ?> ...
-2
votes
0answers
6 views

Product vendor admin profile [on hold]

I've been racking my brain for a few days on this and can't seem to figure out a possible way. Essentially the product vendor plugin allows multiple shop owners to sell on one marketplace, each shop ...
-2
votes
0answers
18 views

Stop a hooked function execution if conditional check fails

I have hooked a function that checks something, and if that check fails i want the hook instance to stop and not continue, how to do it? In this case it is the save_post hook, i want to do a check on ...
-1
votes
0answers
6 views

Community mgmt/registration plugin [on hold]

I'm looking for an easy way to enable community members to register and display their information on a few fields, upload a picture or a logo. All of the registered members would appear listed ...
0
votes
1answer
27 views

How to link a PDF file to a category URL

I am not sure if it is possible to do this but I have a category called case-studies into which I write individual posts to summarize a case-study - for the sake of this question let's give a title of ...
-2
votes
0answers
11 views

What is the best multi-site search plugin out there? [on hold]

I have a multi-site and currently using Multisite Global Search plugin. It works most of the time, but trying to find out if there is a better plugin that does the same thing.
1
vote
0answers
20 views

Crop image to horizontal or vertical by code based on image size

my client asked me to create gallery(WP gallery) based on this site. the problem here is that i need to crop images based on image size before inserting the image in the Media library. now i using ...
0
votes
0answers
13 views

How to add a custom HTML attribute to a parent element of wp_nav_menu?

I am using wp_nav_menu and I want to add a custom attribute that I need for uikit drop down component (data-uk-dropdown attribute) This is how the HTML should look like: <ul class="uk-navbar-nav ...
0
votes
0answers
6 views

WordPress adds superfluous </p> to qtip2 content. Cause Unexpected token ILLEGAL [on hold]

I’m developing a wordpress plugin using qtip2. Line breaking are not working. When trying to create an in-memory div via a JS code following ...
-1
votes
0answers
7 views

How to create menu in parallax wordpress theme? [on hold]

Can anybody clearly give me some idea how to create menu in parallax theme for wordpress?I want to add menu not using the # tag and page title or slug.
0
votes
1answer
31 views
+100

Custom Post Type as Page parent

So there are a million snippets for how to get pages as parents of custom post types. However, the reverse seems to be questionable. One would think, since everything in WordPress is technically a ...
-2
votes
1answer
29 views

Shortcode conversion to hrml when post is published

I am creating posts in wordpress using shortcode. When user looks at post, the data is displayed by pulling from database. But we also send email to users when post is published. In this post, we sent ...
0
votes
0answers
10 views

Removing gravatar from Wordpress feed? [on hold]

This is a part of my blog post's rss feed. <item> .... .... .. <wfw:commentRss>https://technoinnovation.wordpress.com/2015/01/24/first-post-3/feed/</wfw:commentRss> ...
-2
votes
0answers
14 views

Role-specific upload [on hold]

I am looking for a plugin that allows users of a specific role to be able to upload to a specific directory only accessible by that role, with a page listing the files in that directory. This is to be ...
-3
votes
2answers
33 views

Best way to clone a wordpress website [on hold]

Originally, this question was a stackoverflow question http://stackoverflow.com/questions/28079326/wordpress-wp-clone-plugin-is-resetting-my-site but after I found this site, I found it better ...
0
votes
1answer
22 views

Where to insert customize_register in wordpress plugin

I'm developing a plugin... well trying to... for wordpress that adds a parallax header in a theme. I want to have a customizer section for my plugin, but where ever I try to add the customize_register ...
1
vote
1answer
41 views

Use 'parse_query' filter to show posts that from multiple criteria

I am trying to filter the Posts page in the WordPress admin to show posts that meet the criteria for "A" -or- the criteria for "B". I've scoured documentation and can't find a good way to do this. ...
0
votes
1answer
16 views

Generate thumbnails like 500px.com

I tried but couldn't get thumbnails like these, in wordpress. Please check this url https://prime.500px.com/galleries/tricks_and_treats If you notice, there is no cropping. Its just zoomed-out or ...
0
votes
1answer
18 views

Why query by specific date with variables doesn't return same result that with harcoded integers?

Having a blog with one post per day from monday to friday, on weekends I need to retrieve last friday post if user click the "today word" or the las thursday post if user click the "yesterday word". ...
0
votes
0answers
18 views

Popular post 'of the week'

I would like to know how can I make my widget get the popular post by week ? Right now it show only popular post since the beginning of the website. here is my code : // PopularPosts Widget { ...
0
votes
1answer
17 views

Retrieve a list of users based on some conditions

What am I doing wrong on this query? The main issue is the var_dump returns null. The query works fine in phpMyAdmin. global $wpdb; $users = $wpdb->get_results( $wpdb->prepare( ...
0
votes
1answer
7 views

Different titles for static, posts, and every xy page

I have: a static front page "Home" a page with all my posts "My posts" all the other post/pages from the blog "Post x / Page y" and each one of them should display its title in the header. I'm ...
0
votes
0answers
7 views

Ignore specific URI segment

I've set up a custom post type and have it displaying correctly at /archive and /archive/single - what I want to be able to do is allow specific segments in place of /single to still show the ...
0
votes
0answers
9 views

Registration Page Cuztomization

I'm trying to build a registration page similar to that of Gmail's (as an example). To do this I am attempting to follow the example #2 given in the codex page "Plugin API/Action Reference/register ...
0
votes
0answers
8 views

Is this the proper way of switching the “Edit My Profile” link with my BuddyPress “Extended Profile” link?

I am using the Multisite feature enabled. I have a main site and a community site. On the main site the 'Edit My Profile' links is pointing to this link: ...
0
votes
1answer
15 views

query_posts clarification needed

I understand for the most what query_posts does and how it works. I also know it's not good practice to use it. But I would like to know exactly what the "$posts" variable does in this setup: ...
0
votes
2answers
27 views

Plugin as custom page

I'm begginer in wordpress (but not begginer in PHP) and I would like to make custom search page as plugin with this url www.example.tld/book-search. It would be simple page for searching books from ...
0
votes
1answer
17 views

Enqueuing a stylesheet and ensuring it's loaded before (not after) the theme's stylesheet

In wp_enqueue_style()'s doc I see the third parameter is for stylesheets to be loaded before the one called by the function. But is it possible to do the contrary, meaning to instruct WP to load a ...
1
vote
1answer
30 views

Get tags for current user

How i can get user tags list , i get list of all tags with this: <?php $tags = get_tags(); ?> <?php if (isset($tags)): ?> <ul> <?php foreach ($tags as $tag): ?> ...
0
votes
0answers
19 views

WordPress not updated correctly

I have hosted my website with grendlehosting site.I have my domain is being hosted there with wordpress installed. I had WordPress 2.x. then I tried to update my WordPress to 4.1. but after the ...
0
votes
1answer
51 views

Pass important values server-side when processing form

I am working on a plugin that has the following within a <form> tag: <input type="hidden" name="postid" value="<?php echo $postid; ?>"> The problem with this is that users can ...
0
votes
1answer
16 views

How to replace URL protocol using PHP?

I'm using HTTPS everywhere in my website but I have problems with sharing buttons for Pinterest and Tumblr. For example, when I try to share image on Pinterest I get this error: "Sorry we could not ...
0
votes
2answers
59 views

Posts in Multiple Columns and Rows with one single loop

I'm pretty new to creating my own theme and I seem to have become stuck and would really appreciate it if someone could help me. I have searched and found snippets of advice but nothing that really ...
0
votes
2answers
36 views

MySQL database gives blank page (white screen of death)

I am currently trying to migrate a live Wordpress site to a local server to do development. I believe I have done most steps correct, but I am only getting a blank page. I am quite certain that this ...

15 30 50 per page