Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

hardcode custom a post (change title url)


  #1  
Old Jul 4, 2012, 01:22 AM
_kimberley's Avatar
_kimberley
 
51 posts · Dec 2011
Amsterdam
I want to change the url in every title post. If you now click on the title, you get the permalink. I want to change that in a custom url:

So:
<a href="http://wordpress-domain.com/?p=19" rel="bookmark" title="Permanent Link to Beste site">TITLE/a>

Would be:
<a href="http://custom-domain.com" rel="bookmark" title="title">TITLE/a>

AND

I want to add a screenshot like this:
<img src="http://grabber.developertool.net/Screenshot.ashx?u=www.custom-domain.com" />
  #2  
Old Jul 4, 2012, 03:57 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
the only place you can change teh permalinks is at dashboard->settings->permalinks AND the smae stule will apply to all posts. This is a WORDPRESS restriction. The post title is the link to the post itself. Let's say you have an archives page that displays th epost titles. The title will be the link to the post.

Even if you could change it and didn't care about messing up the internal links that wordpress uses, you would have to put in some code to test the post ID then change the link for every post - go and edit the code to add a new link - a lot of ongoing work AND when you updated, you would have to do it all over.

So unless the premalink structure fits your needs, I would change your idea of what you are trying to do.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Jul 4, 2012, 04:37 AM
_kimberley's Avatar
_kimberley
 
51 posts · Dec 2011
Amsterdam
Well I dont have to go into the post! So I dont need that link anymore...
Every title must go to a external website, not the single post page itself
  #4  
Old Jul 4, 2012, 05:24 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
That's not how Wordpress works. You could change it, but for EVERY POST you will have to add logic to the theme to assign a hard coded link and when you update the theme you will add teh code back in.

It might be possible to build a plugin that would add a feild to the post editior that would be your new 'link' and then it would grab that field when WordPress is giving the theme the link. But that is way beyond this forum. If you don't have the skills to do that kind of plugin coding, you will have to hire someone to do it. (For what it's worth, I give it a rough estimate of 20-40 hours coding and testing)

Why use the post titles? why not just create a page and hard code the link to what you would have used as the post title?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Jul 5, 2012, 01:07 AM
_kimberley's Avatar
_kimberley
 
51 posts · Dec 2011
Amsterdam
Because I use Gravityforms and there the visitor can send a url. This domain will be send to the database and that will be replaced where normally the permalink would be...

So every post will get his own domain.

This is a site with the same post I would like to have:
http://advertentiewebsites.nl/#gf_2
  #6  
Old Jul 5, 2012, 03:51 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
so why not use CSS to hide the post title and then in each post add a link as the first line?
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks



Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Post display with Custom Taxonomies rpersonal2 Center area post/pages 1 May 1, 2012 07:00 PM
Custom Post Title Placement bswb97 Center area post/pages 3 Aug 7, 2011 02:44 AM
[SOLVED] Can't change post titles? = Atahualpa Post Option-&gt;Body Title Single Pages? Muncheys New Versions, & Updating 2 Nov 8, 2009 06:17 AM
How do i change the color of a post title? bilwebore Atahualpa 3 Wordpress theme 2 May 31, 2009 04:35 PM
Change color of post title only, not page title jockoe Atahualpa 3 Wordpress theme 1 Feb 26, 2009 06:14 PM


All times are GMT -6. The time now is 09:20 AM.


Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.