Articles of permalinks

WordPress Installed But Not Showing Up!

I successfully installed WordPress on my domain. I FTP’d and installed it manually. But, something very strange is happening. Whenever I visit my website, the default WordPress Sample Post page is not showing up. Instead the Web Host’s default page is showing up. www.example.com and http://example.com has same issue as mentioned above. Please note that, […]

Issue on Getting Custom post type Thumbnail's URL

I need to get the URL for Custom post type Thumbnail and assign it to the_post_thumbnail(”, array(‘class’ => ‘group1 img-responsive’, ‘href’ =>get_permalink($thumbnail->ID))); at this code <?php $args = array( ‘post_type’ => ‘sunglassesCPT’, ‘posts_per_page’ => 10 ); $loop = new WP_Query( $args ); while ( $loop->have_posts() ) : $loop->the_post(); $meta = get_post_custom($post->ID); echo ‘<div class=”col-sm-6 col-md-4″>’; […]

Permalink for specific page name

I create a new page with post name is ‘my-page’. I also have 2 custom query strings. So, the URL will be like: http://domain.com/my-page/?qst1=aaa&qst2=bbb I want the URL like: http://domain.com/aaa/bbb How I can do it? How I can tell WP it is a valid URL, because WP will point to 404 page (aaa page not […]

Permalink with a Category and then a Post

I have a multsite WordPress install and each site can have their own categories. I would like the site URL to be the new site name and then a cateogry and a post or page name. For example, if I have a category of football, I’d like my URL to be something like: website.com/site-name/football This […]

How Do I get the author's page id?

I need to assign comments a user makes to the author’s page where the user is posting the comment. So, I need to get the author’s page id. I have already tried functions like: url_to_postid() and get_page_by_path() with no success. I am using a custom permalink structure for author pages: http://sitename.com/USERNAME Is there a way […]

Can't edit Custom Post Type slug/permalink

I have a custom post type and the permalink shows up but I am unable to modify it like I can with Pages and Posts. Is there a way to enable this? I have a few conflicts with some pages and I’d like to fix them but I can’t. Any ideas?

Echo title with permalink

I was creating a wordpress sidebar widget that will display recent posts. For, this i’ve created a custom widget(popular_posts_widget.php) and included in my theme functions.php. I was trying to display post titles which when clicked display respective posts associated with it. But, unfortunately link doesn’t work. How can i fix this?? This is my functions.php […]

Issue On Displaying Pages with Post Name Permalink

I have a simple Theme like below Right now when I navigate to localhost and site root directory I am able to see content from header.php , footer.php and page.php. then, I simply generated some pages for Navigation bar and to get a better URL I updated the permalink from default to Post Name format […]

Is there a way to regenerate page permalinks without a plugin?

I’m working on a site which has some incorrect permalinks contains ‘home-2’ e.g. http://example.com/home-2/pagetitle/. I have no way of knowing where home-2 came from and manually editing the permalink in the page editor only allows me to edit the pagetitle portion. This question seems relevant but refers to the post title and not the portion […]

Media items hogging pretty permalinks

I have a WordPress installation setup but I’m having trouble with items uploaded to the media library taking up pretty permalinks. The only way to fix it that I’ve figured out so far is to delete the image from the library. However the image in question is used all over the site so I would […]