All Questions

Filter by
Sorted by
Tagged with
0
votes
2answers
538 views

custom post type metaboxes not saving

I have the following code. I am trying to enter data into the custom metabox and then save it. When I go to view it has entered a post, however the name column has nothing in it. Also when I hit save ...
2
votes
2answers
4k views

How to get post ID in post_updated action hook?

I want to execute a function, myfunction() [hypothetically named], whenever a page is updated in the admin. The function doesn't do anything to the content that is saved—it just runs an unrelated task ...
0
votes
1answer
2k views

Submit Custom Postypes from frontend

I am attempting to create a form that submits data and creates a post with custom fields filled. What I would like to do in step form. 1) Create a custom posttype function called "pickups" (I do not ...
2
votes
1answer
3k views

Best way to integrate an existing PHP application into WordPress

A client of ours has a web application written in PHP. They have commissioned us to develop the front end for the website, but they want us to integrate the current PHP web application (a package ...
0
votes
1answer
182 views

Shortcode Attribute

I want to assign a title to my column shortcode. Essentially, [column title="nameofcolumn"]content[/columntitle]. But I'm not quite sure what to do after the "=>" or after my div class of title. I'...
0
votes
1answer
9k views

How to find taxonomy parent id from child taxonomy page?

This site is in beta at: beta2.dixiestarkhome.com , the page for context is: http://beta2.dixiestarkhome.com/taxon/upholstery/sofas-settees/ my custom taxonomy is "taxon", sofas is a child of ...
3
votes
1answer
5k views

Why is my custom meta box input not saving

I've added the following function to functions.php to add a custom meta box enabling the end user to input a gallery shortcode. I then intend to use this to place a gallery in a specific place on the ...
0
votes
3answers
1k views

How to list menu-item- ids in order for wp_nav_menu

I have a nav menu call: 'primary', 'container_class' => 'primary-menu' ) ); ?> The output looks something like this: <div class="primary-menu"><ul id="menu-other-links" class="menu"> &...
1
vote
1answer
80 views

Export all content from wordpress

Evening all. I've decided instead of upgrading the install of wordpress that I have, to just take the content (my writeups, comments, pages) and move them to the new site install. Is there an easy ...
0
votes
1answer
2k views

Translate custom template with WPML

I have custom template that is used by ClassiPress and it is working fine on default language, but when I enter the page language selector won't work since it's not translated. How can I translate ...
4
votes
1answer
4k views

When and Where to use wp_insert_post()

I'm building a function that creates a group of pages with a common parent ID. If I run wp_insert_post() on a parent ID twice, does the function create the pages twice while altering the slugs? Or am ...
0
votes
2answers
599 views

Editor html formatting is different from view source

Here's what I see when I click on the HTML tab in the editor... <div style="margin: 10px 0;"><a href="test.jpg" rel="nofollow" target="_blank"> <img style="float: left; margin: 10px; ...
0
votes
1answer
2k views

Nextgen gallery show thickbox/shutter from link instead of image [closed]

I'm trying to show the gallery in a thickbox or shutter window from a link. if i have a gallery [nggallery id=1] i want to have a link "view photos" and when i click on it a thickbox/shutter window ...
0
votes
3answers
142 views

Translation for plugin

I modified a .po file, basically I opened as txt file and made the changes, however I uploaded it and is changes are not working. I wonder if I need an special software for doing and generate a new ....
8
votes
3answers
9k views

How to prefill the username/password fields on the login page

For a demo environment, I would like to pre-fill the username and password fields of the wp-login form with respectively "demo" and "demo" string. Thus users will just need to click on the "Log-in" ...
6
votes
2answers
5k views

Load js/css files only on specific admin UI pages

How do I adapt this solution to work with my plugin? (Please see the link). I enqueue my css and js script as follows: function my_plugin_init() { wp_enqueue_script('my_plugin_script', plugins_url('...
1
vote
1answer
331 views

How to display sorted posts in the 'All Posts' page

I've been following this tutorial to build a sorting page for my posts: http://soulsizzle.com/jquery/create-an-ajax-sorter-for-wordpress-custom-post-types/ The sorting works fine, but the new sorting ...
4
votes
2answers
3k views

Slow admin - waits and is blocked for a long time

I have a wordpress site and sometimes when logged in to the admin it can be quite slow. I've attached an image to show what i mean. The first request waits for about 8 seconds before anything else ...
3
votes
2answers
1k views

My login form does not work

I have the following code that generates a login form for every page in my blog. <form action="<?php echo wp_login_url(); ?>" method="post"> username: <br /> <input name="log" id=...
0
votes
1answer
364 views

Add extra optional text to permalink e.g. “-with-*”

I've been scratching my head about this one for a while. I have tried to add a hook within WP_Rewrite to ensure that we can pick up pages with a similar structure: /products/product1-with-* /products/...
0
votes
1answer
352 views

How to check if custom field exists in this widget query

How can I include this (or something similar) <?php if ( get_post_meta($post->ID, 'url', true) ) { ?> <a href="<?php echo get_post_meta($post->ID, "url", $single = true); ?&...
0
votes
2answers
2k views

modify URL with mod_rewrite or hook

i'm trying to achieve the following: user enters this URL into browser http://mydomain.com/boston/categoryname/postname/ i then want to get the first "folder" and check whether or not it's "...
2
votes
1answer
407 views

Filter Hook Returning Blank When Used Twice

This is a pretty lengthy question, so bare with me. In a plugin I've written that allows users to easily create new meta boxes, I have a function that uses a switch() to return the appropriate HTML ...
-1
votes
2answers
213 views

Cafe Food Menu upload

A funky cafe changes their menu every month, and they're not comfortable with using the default Wordpress editor to make a Wordpress page look the same as their Word doc. Example word doc here. Can ...
1
vote
2answers
940 views

Removing translation textdomain

I am working on a plugin for myself, so, it's totally useless to load textdomain. But most of codes I copied from others are using the __(' ','') I copied the codes from several plugins. So, even if I ...
0
votes
4answers
5k views

Using WP_Query with multiple loops on one page in search.php

I'm trying to set up a search page that first shows a Loop with all posts with a Custom Field meta_key of 'seek_premium' where it's meta_value is 'yes', and then a second Loop where the meta_value (...
0
votes
3answers
177 views

quotes problem in very simple sql

I just simply want to execute a SQL sentence inside of a post (i am using EXEC-PHP widget for that). The problem are the quotes when i want to do something like $my_name='hello' "select * from ...
0
votes
1answer
629 views

wp e-commerce - theme problem - why won't it load wpsc-single_product.php? [closed]

This is so frustrating! The theme i made myself works fine with wp-e-commerce (getshopped) plugin, but for some reason it won't load wpsc-single_product.php when i view a single product. When i ...
0
votes
1answer
309 views

Allow a subscriber to be an author and view only his post

I have recently upgraded from 2.9.2 to 3.3.1. Im using the edit flow plugin to assign different status to posts and allowing users to register and create a post with a specific status. In the previous ...
0
votes
2answers
202 views

autologin in wordpress when loged in non wp-site

Say I have a non-Wordpress website abc.com that has a Wordpress install at abc.com/news. How can I integrate my non-Wordpress login system at abc.com with the Wordpress installation at abc.com/news ...
1
vote
1answer
325 views

Post Meta not saving when have empty post

Hi I created a meta box on the post, page and project post types. The meta boxes save their data well on every post type. However I have a slight problem, when I create a new post and just enter a ...
0
votes
1answer
578 views

Yoast Force Rewrite Crashed Site [closed]

I just applied force rewrite in WordPress SEO by Yoast plugin and now cannot access my site at all am getting a Error 330 (net::ERR_CONTENT_DECODING_FAILED): Unknown error. message in Chrome and "...
-1
votes
2answers
119 views

What defines a post as portfolio page content?

I have three types of content, Posts which I have defined as Blog and categorise accordingly, Slider Images defined by a specfic category, and Pages. I want to have content as portfolio on a profolio ...
0
votes
1answer
366 views

Loop doesn't work in single-product.php page but works at normal page

I'm outputting a list of categories with the posts inside the ul. This works fine on a normal pages but not on the single-product.php page. It breaks on the single-product.php page with the line ...
0
votes
1answer
142 views

Merge page with custom post type

This may be a weird scenario, but...I have a custom post type called Resources. When visiting /resources/ I get the archive as expected. What I want is a text describing this post type. Therefore I've ...
0
votes
1answer
2k views

Enclosing Shortcode not working in a Template

I've use the following code for an enclosing shortcode and it works perfectly in the posts. function date_code($attr, $content) { return '<h3>' . $content . '</h3>'; } add_shortcode('...
3
votes
0answers
80 views

Add /demo/ slug with rewrite rule [duplicate]

Possible Duplicate: Add extra parameters after permalink? I need to add a slug to every post. Current permalinks http://www.my-domain.com/2012/01/01/my-post-title/ or http://www.my-domain.com/...
0
votes
3answers
4k views

Building a form with WordPress, and also pulling that data for a user page

I am going to give the most basic example of what I want to achieve. I have a page for booking a pickup service, and a form needs to be created to take information of the following. (Date, # of ...
4
votes
2answers
2k views

Does Wordpress generate an automatic page for post formats?

I want a page to view only a specific post format (e.g. aside). Do I have to create my own page and run a custom query, or does Wordpress have an automatic page generated for me (like the categories)?...
29
votes
2answers
65k views

WordPress hooks/filters insert before content or after title

trying to insert content before the post content in my functions.php - I know how to use the regular wp hooks, but unsure how to insert into other areas. Tried this, but it kills content on any other ...
1
vote
1answer
303 views

Can I create permalinks like this: /%post_type%/%postname%/

I've been learning about custom post types from Morten Rand-Hendriksen's great tutorial on making a WordPress portfolio theme on lynda.com. He demos how to set up a custom taxonomy for "recipes" and ...
0
votes
1answer
1k views

How to add section above header for custom post types

I want to include a horizontal section at the very top of my site, above the header, that shows the next six events. I've created a custom post type called "events", and I've created about 150 events. ...
0
votes
2answers
1k views

Using Microsift Word/Outlook for content publishing to Wordpress

I am tasked with building an tool to allow users to publish to Wordpress from their PC using MS Word and Outlook. I know, completely defeat the purpose of having Wordpress, but the basic requirement ...
0
votes
1answer
546 views

How to add a download link to a movie from WP media library?

All, I'm creating a custom theme for WP and it has some pages that play videos from WP media library with an HTML5 player. I wanted to also have a link next to the player to allow the users to ...
0
votes
1answer
182 views

first_post_link and last_post_link? [duplicate]

Possible Duplicate: Is it possible to add a first and latest posts link? I'm working on an image gallery website. Here is the navigation code that appears at the bottom of each "view image" page: ...
0
votes
1answer
1k views

WP Category Meta plugin fix? [closed]

Does anyone know of a fix for WP Category Meta http://wordpress.org/extend/plugins/wp-category-meta/ or a similar solution to add images and meta data to categories? With the latest version of WP it ...
0
votes
1answer
709 views

Creating a custom menu with images as each link

In my current template my main navigation is output by a simple wp_nav_menu function. Now I am thinking of replacing it with a unordered list with background images in css. Assuming I do this I need ...
0
votes
1answer
2k views

why are the term_id and term_taxonomy_id doesn't match on custom taxonomies, but are duplicates on categories

In the wp_term_taxonomy table if I look at the category taxonomy, and then look at all its term_id and term_taxonomy_id, they are all identical. But when I look at the last 4, which are from my custom ...
4
votes
3answers
445 views

Fallback when Transient API fails

I'm trying to figure out how to best solve an issue I have with 3rd party API's (OG, Foursquare, Yelp, etc.). I use the transient API to call and store the various data in order to: Not exceed any ...
4
votes
3answers
4k views

How do I hook an Ajax request into a PHP callback?

Following the directions here http://codex.wordpress.org/AJAX_in_Plugins#Ajax_on_the_Administration_Side I wrote this code: EDITED TO INCLUDE DIE(), STILL NOT WORKING function my_button() { echo "&...

15 30 50 per page