I'm developing a WordPress theme and I need to have a custom URL for some kind of content.
For example, I need to have a page to show some article details. Now, i've created a page template called "Article", and so i've to create a new page and give it the page template "Article"
(I get the url http://mydomain.com/article?id=123)
It wo...
I've installed nginx, FastCGI and PHP on my server. WordPress 3.0 installed after a bit of a monster battle, but it's installed and working well.
However, when I change the permalink settings to anything other than default, I get 404 errors on every post, article and page.
I understand that this is something to do with nginx not suppor...
I am using this code for my search:
<?php
function wp_search_form($form) {
$form = '<form method="get" id="searchform" action="' . get_option('home') . '/" >
'.wp_dropdown_categories('exclude=1 Categories&hide_empty=0&echo=0&selected='.intval($_GET['cat']).'').'
<input type="text" class="search_input" value="' . attrib...
Hello, I am a bit confused about how WordPress's permalink works, especially beyond Wordpress's own usage. My permalinks are like:
%post_id%-%post_name%
But in single.php I want to put another link to page itself but with different query string. When it is clicked the permalink structure may look like:
%mystring%-%post_id%-%post_nam...
I am wordking on a site, made with wordpress, and i like to have some sort of interractivity with the reader/user. So if anyone would like to contribute to a page/post i like to have a button "contribute" and ability to send images and text
I have seen that done with drupal, but have no idea how to thame that proble with wordpress... i ...
I know this question may have been asked before, but I have read hundreds of posts all over the Internets and nothing has worked...
I have a wordpress install (WP 3.0), running on MySQL and PHP 5.2.6.
I'm trying to get the permalinks to just be site.com/postname. When I set the permalinks in the settings to just be
/%postname%
It d...
I'm developing a wordpress theme for general release. I want to display an image beside the "previous post/next post" (if there the function is true), however, relative paths aren't showing up. Here's the code:
<?php previous_posts_link(__( 'Newer posts <img src="/wp-content/themes/basix/images/icons/arrow_right.gif" alt="previous post ...
I use the following code to highlight a menu item if the post is in this category or the category is selected:
<a href="/category/presets/photoshop_actions" title="Only Photosshop Actions"
<?php if (is_category(photoshop_actions) || is_single() && in_category('47')) {
echo ' class="rounded rounded_active" ';}
...
I created 2 pages. let's say "Page 1" and "Page 2". When I view the website, both pages display just fine.
Then I:
go to Settings -> Reading
select "A Static Page"
I set "Page 1" as Front Page & "Page 2" as the Post Page.
I refresh my site and I get a "Not Found" message when I click on Page 2 on the nav bar.
Any ideas?
...
Hello,
I need to display all my post titles in the sidebar of my Wordpress theme all the time. Just now it works only when I am browsing a category (it shows all post titles from that category). But when I click on a post, only this post title remains into my sidebar, which is not supposed to function like that.
Could you help me, plea...
Hi all, I have created a wordpress theme and I made it so the background image can easily be changed. The only problem is that currently I have to make the change manually (ie FTP) and Id like to provide my client with a Template options page with an "Upload new background image" option in it.
Im pretty sure this is possible, I just don...
Hello,
is there a way to rename files during the upload progress within the Wordpress 3.0 backend? I would like to have a consistent naming of files, especially for images.
I think an 12 (+-) digit hash value of the original filename or something similar would be awesome. Any suggestions?
Regards
...
Hello,
Our company now has over 40 tutorial videos and I'm looking for a video gallery app.
Something that would be similar to:
http://tv.telerik.com/
or
http://umbraco.org/documentation/videos/for-site-builders/datatypes/using-datatypes-that-have-prevalues
Does anyone know of any PHP or asp.net solutions?
I'd rather not re-invent th...
I have the following on a custom type:
<?php if (get_post_meta($post->ID, 'client_value', true)) { ?><span><?php echo get_post_meta($post->ID, "client_value", true); ?></span><?php } ?>
There is data in client_value but it's not showing on my custom type, it works fine on general posts, just not on custom types. Any ideas why?
...
Hello,on my index page I have Featured Content Gallery,I want to put Dynamic Content Gallery when I open some category(for example category named myCat),like there is another index.php page but it is start page of category myCat.What is the best way to do this,to add extra php file to theme?Some more ideas?Tnx in advance.
...
hey guys,
i have an really unusual problem i've never had before.
i've no .htaccess file on my server. looked everywhere, there is just no file, but a Wordpress Plugin (AskApacheRewriteRules) tells me that the following Rules are active:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond ...
Hi
Iam developing a theme for wordpress.And i have many images in 'images' folder.But when i take the page in browser its not comming
My code is
index.php
<ul>
<li><a href="#"><img src="images/mindset.jpg" width="145" height="32" /></a></li>
Is there any function for getting the image path in wordpress ?
...
hey there,
i thought i was trying to create something pretty common, but i can't figure it out.
i want to be able to create / 'prepare' blocks of html, wich you can assign to pages.
example:
- create a few content blocks (customer list, internal banner, maybe some fancy button)
- When editing / creating a new page, just 'check' wich...
i have a category named news and many subcategories inside it.
What i wanna do is to get only 1 posts(newest) from each of those sub categories(including category title, post title, attachment image).
Is there any suggestions friends??
...
Is it possible to change the attachment page slug to the referring filename? In short... i use the Gallery Shortcode to build a simple page based gallery.
I change the orignal filename (like DSC1223.jpg) during the upload process (to 3b1871561aab.jpg) but it does not appery as slug within the url. It uses only DSC1223.
Is there anyway ...