My wordpress site has a portfolio page by itself, and the link is www.example.com/portfolio. I tried to find the specific page (with this url), but i couldn't find. So my purpose is to create a portfolio page, on my wordpress site and have the specific url "www.example.com/portfolio".
That where i did, to create a portfolio page, was to create a page and change the slug to "www.example.com/portfolio", but when i hit this url, show me the portfolio page, that has the site by itself and not my page.
So my question is, can i change the name of the existing url "/portfolio" and if yes, how (can i change it from my wordpress files), to appear the page i created and not existing page has the site by itself?
Thank you in advance!
Your WordPress page slugs aren't configured from within the codebase; instead if you go to the relevant page whilst in the admin dashboard, on the right hand side will be some config options - here is where you're able to change the slug.
How to change your slugs using permalinks WordPress Docs
It means you have a custom post type "portfolio". You need to unregister it. Put this code in the functions.php file of your active theme and then create a new page with a "portfolio" name(title).
if( !function_exists( 'cus_unregister_post_type' ) ) {
function cus_unregister_post_type(){
unregister_post_type( 'portfolio' );
}
}
add_action('init','cus_unregister_post_type');
Amin panel, go to pages... search for the page portfolio... there is no physical presence like portfolio.php... hope this helps
You just use this plugin and this plugin will help you.
Plugin: https://wordpress.org/plugins/custom-permalinks/
Related
I managed to create a page for all my posts and it works ok. But I want to change the clean URL of my posts. How can I change that via the wp admin area? or do I have to fiddle with the code?
For instance,
http://wordpress-4.com/hello-world/
to
http://wordpress-4.com/blog/hello-world/
I have a page called Blog and its url is,
http://wordpress-4.com/blog/
So I need to have blog/ in front of all my posts.
Any ideas?
Go to Settings -> Permalinks in the WordPress admin.
Under custom enter into the field blog/%postname%/.
I have WordPress installed in the main directory. I want to create a static page so that when the person clicks "click here". It goes to the wordpress blog.
I have tried this two ways thus far.
Created a custom page in wordpress and then had it set as a static page. Problem when someone clicked the linked it redirected back to the splash page.
Put the files in the main directory. Problem the person would have to go to www.example.com/splash.html to get there. I tried creating a htaccess but host gator will not let me.
edit: I figured it out using
<?php
if( (strpos($_SERVER['HTTP_REFERER'], get_bloginfo('home')) === false) && !$_SERVER['QUERY_STRING']) :
?>
What is the purpose of the splash page if its just one link on it?
One option is to create your page within wordpress and set the frontpage to show as a static page (under settings > reading). On that page link to your /blog/ category or to a custom template page that displays all your blog posts.
If you want to have the same design as the page currently has, you can make a new template out of you current index.php file.
http://codex.wordpress.org/Pages#Creating_Your_Own_Page_Templates
The simple option is to use a plugin.
http://cochinoman.com/2009/02/16/wordpress-plugin-for-splash-screen/
Gives you the option to Continue on or go back.
Is there any plugin available which I can use to post custom content on My front page?? I am using front page which has link to other blog pages. I want to put custom content on this front page but i am unable to find any plugin.
whatever plugins which i searched gives this facility for sidebar in a widget format there were no option for manually putting content in my theme.
Also is it possible to put latest post by a particular author on this page??
You need to edit index.php file in you're theme to do this . have a look at query_posts , what i would recomend is having a category called home_content and limit all the theme files using query_posts not to show that category , and show posts from that category only on the homepage ( index.php file from you're theme ) .
You could allso ask wordpress related questions on wordpress.stackexchange.com
I have a hard-coded link in my Wordpress theme but I need for the link to be able to be managed from within a Wordpress post. How can I go about pulling the link url, from a post (or something similar which is content managed) and put that into the link?
Many thanks!
Use a custom field in the post page. You can retrieve it using get_post_meta() in your theme. Example, assuming you are in the loop!
$custom_link = get_post_meta($post->ID,'custom_link',true)
Quick question (quick deadline...I know I can use google).
I'm writing a site on Wordpress w/ a static home page, it has a few pages--I want the 'blog' page to show the wp entries...what's the best way to set this up.
Right now I have a static template for each page (with content rendered), but of course, the blog page doesn't show the posts...
Thanks for the help!
Create a Wordpress Page Template by making a page with any name and this comment at the top:
/*
Template Name: Blog Enitres
*/
Go create a page, use that as the template (there is a selector on the right hand side). Call it whatever and save it. This is your static page.
Then, after that, go down to Settings > Reading and change the 'Home' page to be the page you've created.
Then create an index.php and save it. This will be the template for the displayed posts. Create an empty page and select it at the 'Posts Page' in settings.
To learn more about this functionality go here.
To learn more about the Wordpress loop and how to display entries, visit codex.wordpress.org