0
votes
3answers
425 views

Show multiple next and previous posts

I've created a portfolio with single posts. When viewing the posts i'd like to show the next / previous 2 posts (portfolio items). Currently i'm using the following code but only shows one post: ...
0
votes
2answers
307 views

Page Options Saving But Not Updating In Backend

I have created a custom options page for a slider that you can upload slides to. Everything works great except when trying to save the data. It will get saved and I can use it on the front end. But ...
2
votes
1answer
665 views

Rewriting search and pagination base

After trying for weeks now how to find a working solution I got rid of most of my functions and trials and just left the pagination function underneath in my functions.phh file: /** * Pagination ...
1
vote
1answer
677 views

How to check if the current page is a “personal activity”-page in buddypress? [closed]

I want to modify some general text in my personal-activity page in buddypress. Does any one know any conditional tag like is_page('activity') things are there for checking this? the page can be ...
2
votes
3answers
652 views

Making a Custom Post type only visible to non-users via a specific link

I am working on creating a small web-app with wordpress as the framework. It allows you to input a customer and in turn sends an email to the customer with a link back to the website in order to ...
-1
votes
2answers
85 views

Receiving error with Custom Tables plugin

How to resolve this warning which is shown when I use the Custom Tables plugin? Can anybody help me please Warning: Invalid argument supplied for foreach() in ...
0
votes
1answer
78 views

Sidebar not visible after changing to new domain

I made a change of my existing domain to new domain. I took the backup of the database from old site and imported it into new database Used the search and replace widget to replace the old url with ...
0
votes
1answer
118 views

Editing Loop So It Targets Specific Tags?

Confused on how to achieve this, but what I'm trying to do is load posts with the tag "reviews" in the loop on the homepage. Index.php: <?php /* Start the Loop */ ?> <?php while ( ...
3
votes
1answer
1k views

Check if on last page of paginated post using wp_link_pages

A client of mine reviews products on his site, and wants to display the review criteria and score on the last page of each posts. Typically, there are 3-5 pages per post, and I'm looking for a way to ...
0
votes
2answers
482 views

What can I replace '.get_bloginfo('url').' with to return the current URL rather than the home address?

I am using the Any Mobile Theme Switcher plugin to switch between full and mobile themes automatically. The only problem with it is that the 'switch to mobile site' and 'switch to full site' links ...
0
votes
2answers
226 views

Change Default Content when Creating a Post based on Previous Category Choice

I'm working on a system that forces users (unfamiliar with wp) to choose a category before creating a new post, and then adds some appropriate html layout styling to help them. The following code ...
0
votes
2answers
35 views

Can't create new CPTs when menu hidden

I am adding a large number of custom post types and taxonomies so it is often visually clearer if I DO NOT have them all added to the admin menu's top level. Instead I would prefer to add them under ...
-1
votes
1answer
778 views

Adding Meta Tags to a Post using its Tags, Excerpt and content

I run a multiple author platform where I have added conditions that force authors to add tags to their post. To improve SEO, I would like to add Meta Tags to the posts. Ideally, with a light solution ...
0
votes
1answer
1k views

How to resolve 404 errors for wordpress comments/feed when I have disabled comments

I have disabled comments in my wordpress site. So comments/feed url is giving 404 error. So how should I resolve these errors? doaminname/feed works fine. But domainname/comments/feed is giving error. ...
1
vote
2answers
894 views

Error handling a plugin with exceptions

I'm creating a new plugin and I want to handle errors cleanly. I find the WP_Error class unwieldy so have decided to use exceptions. I am not bothered about lack of PHP 4 support. $error = true; ...
0
votes
2answers
131 views

WordPress templating system for custom plugins

I'm creating a custom plugin which needs to display HTML with dynamically updated values. To illustrate, here's what I want to achieve: <h1><?php print $title; ?></h1> ...
3
votes
1answer
124 views

How can I create a loop to build slides based on multiple categories using Coda Slider

I'm using a loop to generate the slides I need for a Coda Slider slideshow. The slides should be pulling the most recent post from 5 different categories. The problem I'm having is that it's pulling ...
8
votes
2answers
243 views

Individual rss feed entry length for categories?

I know how to retrieve the rss2 feed from a category in wp, namely adding /feed behind the category name. However when I do this, not all entries from that feed are included in the rss, this is ...
1
vote
1answer
1k views

What is the best method to close off the backend?

The goal: Completely remove the ability to access the WordPress backend on the production domain. Ex. return a 404 for http://example.com/wp-admin Purpose: I don't want any possibility of WordPress' ...
1
vote
2answers
693 views

Reordering Buddy Press profile navigation [closed]

I am using this code to reorder the positions of the menu items for BuddyPress profile. I am using the xprofile (not sure if that makes a difference). Here is the code that I am trying to use: ...
0
votes
1answer
193 views

Wordpress sub-posts and permalinks

I'm thinking about one problem... There is a set of regular posts. Just posts in categories. I need to add for some of them a sort of subposts, posts which will be related to parent-post. This ...
0
votes
1answer
306 views

post_content with Contact Form 7 [closed]

Is it possible to add name="post_content" to more than one input field? I am using Contact Form 7 plugin, and now only the last input field with name="post_content" is gathered in the post. If I ...
0
votes
2answers
81 views

wp_enqueue_ scripts

I've searched high and low for the answer - the codex on wp_enqueue_script seems pretty simple. The problem is when I add my custom excerpt script to my functions file, register and then enqueue it ...
0
votes
1answer
67 views

Create and style menu

I have been assigned with the task to create a menu that can be added or removed from wordpress admin. Right now the menu is hard coded into the templates. But I want to use default menu function ...
0
votes
2answers
769 views

Programatically re-order images in the ACF gallery add-on. Orderby Title, ID, etc

I have a gallery field using the advanced custom fields gallery addon. This is how I am outputting my gallery fields/images in my theme... <?php $images = get_field('gallery'); if( $images ): ...
1
vote
1answer
1k views

Custom Post Type with image gallery

I'm doing research on custom post types for a Wordpress site I'm going to be putting together for a client of mine. The basics of the Custom Post Type seem pretty straight forward. What I'm trying ...
1
vote
0answers
101 views

Older entries link within category page

I am building a custom wp theme and I have a category called 'blog'. On here I have all of my posts displaying from the category 'blog' and a link at the bottom that says older entries. When i click ...
1
vote
1answer
152 views

Category index featured image

I wish to set a featured/header image for each of my category archive pages, how would I go about doing this without hard coding each category into the theme? An example of the page is at ...
0
votes
1answer
1k views

List products from current category

This code is from the archive page and list all products with a certain tag, can someone please help me to modify this code to make listing products only from current category: <?php if ( ...
1
vote
1answer
6k views

Loop within a loop?

I'm using a couple of custom wp_query loops on my page, the first one retrieves news from a certain category then displays a small excerpt from it with the permalink. The second one is another ...
1
vote
2answers
279 views

Get only one comment per post with get_comments

Is there a way to limit get_comments results to just the latest comment from every post?
0
votes
2answers
2k views

Custom template for password protected page

I have a password-protected page, for whom I'd like to use a custom template to query posts from a specific category. How can I achieve that query_posts should work only after users submit the ...
0
votes
1answer
78 views

Iteratively add sub shortcodes to php array

I have this shortcode structure: [component] [type1]some content[/type1] [type2]some more content[/type2] ... [typeN]some other content[/typeN] [/component] I would like to have the ...
0
votes
1answer
57 views

Multiple loops for plugin

Ok I'm using the plugin "The Cart Press" and I am trying to understand how multiple loops work when using a custom post type. If I do a regular query for posts it just gives me back my blog posts ...
2
votes
1answer
322 views

wpautop() when shortcode attributes are on new lines break args array

I have a custom shortcode tag with a few attributes, and I would like to be able to display its attributes on new lines - to make it more readable to content editors: [component attr1 ="value1" ...
4
votes
2answers
5k views

Slow Query for the wp_options table

I have been tracking the slow queries log of the WP based site (with the default value of the a long_query_time set to 10), and I have noticed that the following query is often getting logged - # ...
0
votes
1answer
206 views

loop through all posts memory error

I have few thousands posts and need to list all of them in the admin. When I used WP_Query to get them all at once I got a memory error. Then I split it into several query calls and it worked just ...
0
votes
1answer
587 views

Exclude post formats in custom loop

I'm trying to exclude all post formats but standard from a page template loop that displays 4 latest posts. For some reason I can't get the query to work. This is my page template global $paged, ...
-1
votes
3answers
70 views

Adding a post to a page

I would like to know how I can add a specific post to a specific page? It would be great if anyone can suggest a reference to this problem. Do I need to create a post category to relate with a page? ...
0
votes
1answer
840 views

A two column loop with one lead post

I got a loop from internet (I forgot the site) for two column post view. It has a nice CSS for it too. But skipping that for the question now. <?php $counter = 1; ?> <?php ...
0
votes
1answer
399 views

Limit upload file type on one custom post type

Is there any way to limit the filetypes allowed for upload based on the current post type? For example, I have a custom post type called documents. I have a File upload custom field which calls the ...
2
votes
2answers
4k views

How can I export WordPress posts' attachments?

I am in the process of transferring posts from one WordPress install to another. I can use WordPress' Tools --> Export to export the XML I need for my posts. On the new install, I then use Tools --> ...
4
votes
1answer
791 views

Add forward slash on categories url (serve one version of a url)

How can I a add forward slash on categories URLs and serve only that version of a category (meaning URLs not ending in forward-slash will redirect to URLs ending in forward slash). I manage to remove ...
0
votes
1answer
271 views

Links in the_content not linked

I have alot of old posts that are being pulled with the_content() context. In the_content() there is links in the text, however none of them are hyperlinked it just shows like ...
1
vote
1answer
386 views

Author List page: Exclude based on last post date

I have a Author page that I built using this code and it works fine. However, I have several writers that range from frequent to one-time writers. I would like to seperate out writers that have not ...
1
vote
1answer
154 views

Getting values of a custom taxonomy dropdown

I have a custom taxonomy dropdown (custom_authors) which is displayed in the comments form when logged in to select a different author than the logged in one. add_action( ...
0
votes
1answer
779 views

get_pagination not working on a custom post type query (using WP_Query)

So I have a page on my site for press releases, and the press releases are a custom post type. I'm using a custom template called page-press.php for the Press page, and I want to display a loop of the ...
0
votes
1answer
842 views

Integrating Magento and Wordpress Users

I've found posts on letting Wordpress manage Magento users and vise versa, but what I'm looking to do is not to have one manage users over the other. I'd like users to have the option to sign up ...
3
votes
3answers
845 views

Best way to import users, post and categories from an external database

I need to migrate an existing website to WordPress. This website already has a basic database containing users and posts (with a category), but it also has a high number of records so it's not ...
0
votes
1answer
196 views

404 to 301 - Fixing old links

I have currently updated a site and made many improvements to it. The old site ran off 3 different systems and had wordpress (and the other systems) in the webroot. I have moved wordpress into a ...

15 30 50 per page