0
votes
2answers
35 views

How to hide a post from archives

I want to hide the WordPress post from archives page using the 'private' option. I only want the post to be hidden from archives but visible to public. How to I do it?
1
vote
1answer
23 views

Force authors to Preview a post before publishing

I'm looking to find a way to force authors (including admin & editors) to preview their post before publishing. Is this possible, if so does anyone know the easiest way to achieve this? I'm ...
0
votes
1answer
11 views

wp_nav_menu: indicate by id page grandparents

I have an web site with top-header menu and sidebar menu. Situation, like: header menu: books music movies (if we are now under music) sidemenu: blues jazz dance (if we are now under "Jazz") ...
0
votes
2answers
38 views

How to get all custom fields with some prefix in key?

I have near 100 custom fields for each post with prefix "wps_" (examle, wps_imagine, wps_video, etc) and near 20 custom fields without prefix. Problem that I don't know names of custom fields with ...
0
votes
0answers
8 views

Attachment page to every image

I made an gallery with the attachment on my Wordpress blog. I want to add the attachment url to all the images on my blog. Its posibile to do this?
0
votes
1answer
15 views

Split WP_POST table based on post types

I was wondering if it's possible to get my posts from 2 databases depending on the post type. I'm using HyperDB but can't seem to get it to specify the database based on post type. I Basically need ...
0
votes
0answers
17 views

WordPress Check User Role Function (multiple roles)?

I'm playing around with the check_user_role function put together by AppThemes; as mentioned in the WordPress current_user_can codex page. In the AppThemes tutorial code it references the following: ...
0
votes
0answers
14 views

Create args for WP_Query using infinite scroll

I'm trying to use infinite scroll in my page as below. http://phototravel.flop.jp/category/japan/mothersfarm/ All photos are actually custom posts under a category. It's using jquery masonry layout. ...
0
votes
0answers
8 views

Break comments into pages with remainder on the first page

Settings > Discussions has a setting called Break comments into pages with (N) top level comments per page and the (last or first) page displayed by default. Now I want to break into 30 comments per ...
0
votes
0answers
17 views

Core files changed - site hacked?

Got a WordFence alert last night for one of our WordPress sites, saying that some WordPress core files had been changed: WordPress core file modified: wp-content/plugins/akismet/admin.php WordPress ...
0
votes
1answer
14 views

get_template_part in admin

I am trying to use get_template_part when creating a page in the admin section of my site. However, it does not seem to be working. Does this function not work in the admin section? What alternative ...
0
votes
1answer
7 views

Pull Instagram images into an existing loop?

I am looking for a solution to pull Instagram images (from a single account) into a Wordpress loop and mix them chronologically with standard posts that will have been created within the Wordpress ...
0
votes
1answer
31 views

Advanced custom field - gallery - display one random image

I created a gallery with the "gallery add-on" of "advanced custom field" plugin. I'm trying to show one random image from the gallery on page refresh. Here's my code: <?php $gallery = ...
-2
votes
1answer
18 views

How to completely remove Wordpress SEO Plugin by Yoast? [closed]

I don't know if it is a good plugin or not, I just don't like installing something which does not have an obvious way to remove it Does anyone how to remove the plugin completely?
0
votes
1answer
11 views

One button to change all settings in theme customizer?

I have been attempting to create a theme reset button for the theme customizer that automatically removes all of the theme_mod settings. I have tried multiple ways to do this and have never been able ...
0
votes
1answer
14 views

SQL Bulk Move old posts by one author to another category

I'm looking to move a number of old posts by one author from one category to another category and was hoping someone could help me do this? I figure the easiest way would be through an SQL command? ...
-1
votes
0answers
8 views

thickbox.js Endless loading gif. Why is thickboxL10n not defined?

Below is the line that throws the error. I am using thickbox.js jQuery("#TB_window").append("" + ""+caption+"" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "");
0
votes
0answers
8 views

Featured entries on top of the archive page

Following is the code of my archive.php I want to display 8 posts at top which are in "featured" category AND current archive term (current archive term can be category, custom taxonomy or tag). ...
0
votes
0answers
7 views

Extended image control not showing up in theme customizer

I have an extended image control for the theme customizer that adds in an extra panel and lists images I have hardcoded into the extended control. Now the issue is that it is not showing up in the ...
0
votes
0answers
26 views

Template for page with overridden Theme

I think I've got a somewhat uncommon issue. My wordpress site uses a custom theme, but I wanted to add a blog alongside that, without using multisite because my host charges 3x the amount for such a ...
-1
votes
1answer
44 views

update_option onclick

I'm trying to add a update_option value when I click a text link. I came up with the following code, but I don't know how to make it "clickable", like <?php function ...
0
votes
0answers
27 views

Custom widgets in theme option page

I'm trying to create a simple theme options page that uses widgets to change the layout of content on the front page. I started off by using meta boxes not realizing that the position is based on ...
0
votes
0answers
12 views

Insert image doesn't pickup right size

I have a very annoying problem. I have created some custom sizes in my media gallery using "simple image size" plugin, but the issue is not related to it as it happens also with wp native media ...
0
votes
1answer
33 views

Disable CSS for IE 8 and earlier.

I am trying to find a way to disable the twenty twelve stylesheet for anything in IE 8 or less. Is there a conditional code that I can put in my functions php file that will enable the default ...
0
votes
1answer
23 views

How to return hook data when multiple parameters are present?

What is the proper way of returning data to a hook when there is more than one parameter present? Example apply_filters('image_downsize', false, $attachment->ID, $size) Attaching a callback ...
0
votes
1answer
14 views

Import data from arbitrary CSV to WPAlchemy meta fields

I've created a custom post type with several custom fields with the help of WPAlchemy, and now I need to import a bunch of stuff from some CSV files. I'm using WPALCHEMY_MODE_EXTRACT. By toying with ...
0
votes
2answers
51 views

Shortcode adding p and br tags

I apologize as I realize this has been asked before and I believe the issue is with wpautop function adding closing p or br tags but every solution I've found has not worked so I'm at a loss for ...
0
votes
0answers
9 views

_wp_attachment_metadata necessary for importing images into wp_postmeta table

I'm working on a project to convert an older custom developed PHP site into a WordPress site. One of the problems I'm trying to figure out is how to import all the images from the old site and ...
0
votes
2answers
49 views

Display next 3 posts based on custom taxonomy

I am wondering if anyone could help me accomplish something like this: https://medium.com/thoughts-and-words/5ccef7b3e1fc with custom post types? I have a custom post type called projects and ...
0
votes
0answers
10 views

set categories based on custom field

i have a xml feed coming into my wordpress site and what i need to do is create a function that automatically assigns categories based on the valus of 2 custom fields so i have salaryband (name of ...
-1
votes
2answers
38 views

How to make a website like the ones in theme demos? [closed]

I don't understand, in Joomla there was a quickstart package that came with templates to show the template's power with data. So our site would be like the one we see in the demos. I have found some ...
0
votes
1answer
17 views

filter search result with custom post type meta key

The default search returns all post types, which is what I want. But for one specific custom post type I want to limit the result to a specific meta key value (a custom date that must be greater than ...
0
votes
0answers
7 views

How to call wp_insert_term() with parent and prevent duplicate terms?

I'm working on programmatically adding some terms to a custom taxonomy and I'm using wp_insert_term to do it. The code: $year =absint($_POST['year']; $month = sanitize_text_field( $_POST['month']; ...
0
votes
0answers
18 views

How to get dynamic data in page hierarchy?

I'm trying to mimic the page hierarchy rules of WP. I'm checking for the existence of certain files, then requiring them if they exist -- in the same order as I understand the hierarchy rules. Here's ...
0
votes
3answers
25 views

How to change the text generated by <!--more--> Tag

I've looked and looked, I've read the codex, and tired several things to change this but nothing has worked. I don't know how to indicate what text to use for the Tag I have a theme that is using ...
0
votes
1answer
22 views

What does get_current_screen() do?

Codex says ' This function returns an object that includes the screen’s ID, base, post type, and taxonomy, among other data points' . What does it mean by 'screen'? Coding example: function ...
1
vote
1answer
15 views

What does extract( shortcode_atts( array( do?

The codex says 'Combines user shortcode attributes with known attributes and fills in defaults when needed. The result will contain every key from the known attributes, merged with values from ...
0
votes
1answer
20 views

Can't access admin: “Not Acceptable”

Today I tried to access the admin panel for a basic Wordpress site. It has no plugins, and uses the default theme. I haven't modified any files. Any admin url returns an HTTP 406 "Not Acceptable". ...
0
votes
0answers
13 views

standard wpGallery for post won't work

I'm trying to get the standard wpGallery running in my post. I followed this tutorial. But I ain't get it working. This is what my editor shows while editing a page: http://i39.tinypic.com/6ivi1z.png ...
0
votes
1answer
17 views

What does setup_postdata ($post ) do?

The codex defines it as 'Set up global post data. Helps to format custom query results for using Template tags.' I don't really understand this. Here is a code example : global $post; $args = ...
0
votes
1answer
30 views

How to obfuscate theme directory URLs

I'm rewriting this question because I realized it was totally unclear what I want to do. I'm looking for a way to "obscure" the theme directory so that absolute URLs that reference things like images ...
1
vote
2answers
35 views

Use oEmbed in List Items

I'm aware that WordPress has oEmbed functionality. But the content to be embedded has to be on it's own line like so: Lorem Ipsum http://www.youtube.com/link/to/content More Lorem Ipsum ...
0
votes
2answers
24 views

Show image exactly defined to a width

I have a photoblog displaying posts as image galleries having width 500px and some posts as single image of width 900px. For posts with 900px width images, I made category HQ. Posts with 500px width ...
0
votes
1answer
19 views

jQuery Validate wp_editor

I have a form, and in the form, I use <?php wp_editor('', 'user_submitted_progress', $settings = array('textarea_name' => 'user_submitted_progress')); ?> to generate a TinyMCE, rather than ...
1
vote
2answers
23 views

Displaying a widget only on long posts (over X characters)

I'm looking to display a standard wordpress widget only on posts that are over X amount of characters in length (or another method that can roughly calculate the height of of a post.) I am looking to ...
0
votes
1answer
17 views

Display external RSS feed on pages

i'm working on a website that is built on WordPress & the Genesis Framework. I'm looking to display an RSS feed From Feedstich within WordPress pages in the middle of the content. What is my best ...
-1
votes
1answer
32 views

Converting static website to wordpress

I have a static website http://www.powersolutionindia.com/ which i want to add blog functionality. There are approximate 10 static html pages in this website, just i want to add seamless blog to this ...
1
vote
1answer
19 views

Undefined function error when creating Custom Meta Box

Following this tutorial, I am trying to create a custom Meta Box on my theme by adding following codes to the function.php file: enter code here add_meta_box( 'my-meta-box-id', 'My First Meta Box', ...
0
votes
1answer
29 views

Post missing from main Loop [closed]

I am having the strangest error I have error encountered on WordPress for a clients site. The main loop /blog page is missing posts. The image below shows... Things I have tried... Updating ...
0
votes
0answers
15 views

Lightbox Post Pop-up on homepage [duplicate]

I've been working on sampression lite theme and what I want to achieve is when a post' thumbnail/read more link on homepage is clicked, a modal will pop-up ( similar to pinterest and this wp theme ...

15 30 50 per page
1 2 3 4 5 633