2
votes
1answer
37 views

How is WordPress manipulating the posts like there are folders?

As you know, a WordPress post can usually be seen going to a link similar to this: myblog.com/2014/03/27/sample-post/ There is no folder named 2014, 03, 27 or sample-post in the blog. Until now, I ...
0
votes
1answer
32 views

Wordpress theme showing blank page

Something is wrong to my installed theme, because when I am clicking on Visit Site than its showing blank page. No error and no content, no navigation nothing to display. There is link below :- ...
0
votes
2answers
201 views

How to redirect non-logged in users to a specific page?

How to redirect non-logged users requesting for a specific page/URL to another page/URL and display a message like "for members only". I know its quite easy to code using !is_user_logged_in() ...
0
votes
1answer
39 views

append links with unique number string

I am in the process of developing a WordPress theme for a news site that delivers the news in bitesized chunks with the story regally updated with new content. What I am having trouble with is this: ...
0
votes
1answer
29 views

Using page title as a link to term archive

i want to do something like that (pay attention to line 4): $term_link = get_term_link( $term, 'genre1' ); if( is_wp_error( $term_link ) ) continue; echo '<li><a href="' . $term_link . ...
0
votes
2answers
73 views

stripping tags from excerpt in Wordpress is not working

I am using this snippet <a href='<?php the_permalink() ?>' title='<?php echo strip_tags(the_excerpt()); ?> with which I am intending to remove all ellipses, <p> tags and other ...
2
votes
1answer
94 views

Put a link to a category round a hard coded A HREF

In my footer I have hard coded the links and would like to link some to there category, I could just copy the full URL to it and paste in the href="" but I would rather call it using php. My ...
0
votes
1answer
104 views

How to change pagination base from slash to query form?

Can this function... function custom_pagination_base() { global $wp_rewrite; $wp_rewrite->pagination_base = 'p'; $wp_rewrite->flush_rules(); } add_action( 'init', 'custom_pagination_base' ); ...
0
votes
2answers
178 views

How can I redirect this contact form to a specific permalink

I'm converting a HTML site to WP for a client and they have a simple contact form in place. If the submission is sucessful it currently, in it's HTML form, sends them to thankyou.html but I want to ...
0
votes
0answers
238 views

Use $_GET with permalinks on page

I'm currently trying to use a $_GET to populate a MySQL query with in a URL on another page within a Wordpress site. URL sample: <a href="http://site.com/file.php?alabama">Alabama</a> ...
0
votes
1answer
72 views

get_permalink returning first letter

I'm trying to use an ajax function in my custom template to retrieve a post's custom fields to show a post overview. Getting the custom fields is working, but the getting the permalink isn't. I'm ...
0
votes
2answers
146 views

Strip hashtag off permalink with php

I use the_permalink() to pass the current page to the facebook like button. But when one goes directly to a comment link with a hashtag, such as example.com/post#comment1, it's considered a separate ...
1
vote
1answer
617 views

Change slug with custom field

I want to change the slug of a post with a custom field. In example, if the custom field is "keyword" my post link will become: mysite.com/keyword. If the custom field is empty, i want to generate a ...
0
votes
1answer
272 views

Insert PHP code in Text

I have this code for insert a permalink but doesn't work, return exactly code: $text = '<form><td>Permalink to: <?php the_title();?></td><textarea cols="85" rows="2" ...
0
votes
1answer
173 views

Get permalink for a post from inside Wordpress and route to a related site

I built a mobile version of a wordpress site and added some PHP code in the wordpress index.php file to detect mobile users and HTTP-redirects them to m.website.com (which is not a wordpress ...
1
vote
2answers
325 views

Clean URL permalink for custom post type

I have a custom content type of photo_group which is a collection of photos. I want to be able to go to mysite.com/photos and have that page dump out all of my photo groups. How can I do this ...
0
votes
1answer
444 views

Dynamically change Custom Post Type Template OR Change Permalink?

I have built a plugin that uses a custom post type and a single-.php file for a template. My issue is the custom post type template needs to take on the name of the post type and I need to change ...
0
votes
1answer
51 views

custom data in url

Inside a WordPress site I load a external xml file parse it and show some links. The link looks like this: domain.com/prof/vac/item?guid=1234&title=foo This works, but now i would like the url to ...
0
votes
1answer
48 views

Permalinks: site.com/post-tite vs site.com/post-id/post-title for SEO and Speed

What are the differences, in terms of overall "work" required by the PHP processor to retrieve a page using these two permalinks settings: /%post_id%/%postname%/ vs /%postname%/ The second ...
0
votes
1answer
175 views

Can not call .php files after switching to %postname%

This $('#content').load("submenu.php"); works just fine with default permalinks When I switch to %postname% it does not work any more But, I can still go though to mysite.com/submenu.php and it ...
0
votes
1answer
264 views

Categories Listing and Highlighting current category item

My query is on Wordpress and related to categories. I have a set of categories for my posts: All, Cat-a, Cat-b and Cat-c. a. When I click on the link to my posts page, I want to show an archive for ...
-1
votes
3answers
703 views

PHP code for link with text

I was exploring and ran across this post: Grab First Link From A Post, Grab First Blockquote I would basically like to do the same thing, but have it call not only the URL but also the link, since I ...
0
votes
1answer
161 views

Wordpress permalink issue

If i try to access my wordpress page using the native url structure i.e. for instance: www.mywebsite.com/?p=123 I am redirected to my homepage. It doesn't seem to be an htaccess issue for I tried ...
2
votes
3answers
4k views

Facebook Comment Count

I am a bit of an amateur when it comes to PHP and WordPress but I have rigged up the following code: function fb_comment_count($url = 'some url here') { $filecontent = ...
1
vote
3answers
244 views

wordpress upgrade has broken my permalinks

I have just upgraded my wordpress installation from 3.1 to 3.1.1 and my custom structure permalinks are now broken, The permalinks were set to follow this procedure, /%category%/%postname% ...
2
votes
1answer
318 views

Add filename to attachment page url

I wan to change my premalinks to attachment pages from http://example.com/.../attachemnt/something to http://example.com/.../attachemnt/something/something.jpg It should simply add filename but with ...
3
votes
3answers
2k views

Need help with friendly URL's in Wordpress

I'm creating som custom templates in Wordpress and I'm passing some data in the URL's. Currently my URL looks like this: http://www.mysite.com/designers/?id=43&name=designer+name The URL ...