Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

category multi-post pages link to same name page


  #1  
Old Jul 16, 2013, 02:51 AM
fullmetalgirl
 
32 posts · Aug 2010
hi,

I'm trying to find a way to use %categories-linked('delimiter')% with it going to a normale page instead of the category page.

how can i make sure that
example:

website/category/categoryname (category multi-post page)
links to
website/categoryname (normal html page without a listing of posts)
  #2  
Old Jul 16, 2013, 03:06 AM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
You can't without editing the theme code and changing what that option does.

Categories can be assigned to more than one post
  #3  
Old Jul 16, 2013, 03:19 AM
fullmetalgirl
 
32 posts · Aug 2010
i was afraid of that, you cant help me with that? like what do i need to change and how?
it would be a nice new feater to athualpa if it was added...
  #4  
Old Jul 16, 2013, 03:44 AM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
it does what it is suppose to do. Remember each category can have multiple posts associated with it. For example if you have the category 'fruit' you might have a post about apples and another about oranges and another about grapes so looking from the category you would have
HTML Code:
fruit
 *
 ** apple
 *
 ** orange
 *
 ** grapes
and lets assume you have a catefory of 'red' and you assign that category to 'apple' and 'grapes', then apples and grapes are associated with multiple categories.

the %categories-linked('delimiter')% (note the plural) shows the list of categories and when you click a category name it always takes you to a mullti post page showing all the posts in that category, even if there is just one post currently in the category.


my question is: What are you trying to do and why?
  #5  
Old Jul 16, 2013, 04:47 AM
fullmetalgirl
 
32 posts · Aug 2010
I have a page, that contains 2 category lists of 2 diffrent categorys.
on that page are also some other specific for that page html items.

example:
Page "apples and grapes"

This is how my page looks like:
(sllideshow specific to this page)

Category "apples"
post 1
post 2
post 3

Category "grapes"
post 1 grapes
post 1 grapes
post 1 grapes


if i use %categories-linked('delimiter')% in post 1 grapes, it sends me to Category "grapes"
but i want it to send me to Page "apples and grapes" cause thats where i've listed them nicely.
  #6  
Old Jul 16, 2013, 05:53 AM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Why don't you just put a link at the start of the text in each post linking to the page you want? simpler than having to edit the theme code each time there is an upgrade...

oh and if you really want to change the code, it is in bfa_postinfo.php
  #7  
Old Jul 16, 2013, 06:13 AM
fullmetalgirl
 
32 posts · Aug 2010
the reason why i dont want to "just place a link"
is cause we're talking about 100+ posts wich might change category ..
I don't want to have to replace the link in each post to get what i want..

think i need to do something with this bit:

PHP Code:
// Categories, linked
    
if ( strpos($postinfo_string,'%categories-linked') !== FALSE ) {
        while ( 
strpos($postinfo,'%categories-linked') !== FALSE ) {
            
$category_linked_separator preg_match("/(.*)%categories-linked\('(.*?)'\)(.*)/i",
            
$postinfo_string,$category_linked_matches);
            
ob_start(); 
                
the_category($category_linked_matches[2]);
                  
$categories_linked ob_get_contents();
            
ob_end_clean();
            
$postinfo preg_replace("/(.*)%categories-linked\((.*?)\)%(.*)/i""\${1}" .
            
$categories_linked"\${3}"$postinfo);
        }
    } 
or this bit:
PHP Code:
    // Permalink
    
if ( strpos($postinfo_string,'%permalink%') !== FALSE ) {
        
ob_start(); 
            
the_permalink(); 
            
$permalink ob_get_contents(); 
        
ob_end_clean();
        
$postinfo str_replace("%permalink%"$permalink$postinfo);
    } 
no clue...
  #8  
Old Jul 16, 2013, 06:21 AM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
so let me see if I can restate what you want. You want every category link to go to a particular page
cat 1 goes to page x
cat 2 goes to page y
cat 3 goes to page z
etc
etc
is that right?
  #9  
Old Jul 16, 2013, 06:26 AM
fullmetalgirl
 
32 posts · Aug 2010
correct ..
  #10  
Old Jul 16, 2013, 06:55 AM
juggledad's Avatar
juggledad
 
23,655 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
so this means everytime you add a category, you will have to edit something, create a new page and add a link to that page.

This is something outside the theme. I would suggest looking for or writting a plugin to hook into the wordpress category code and give you a way to link the category to the page you want.

If you don't know enough to attempt this, I'd suggest hiring someone to do it for you.

Sorry but this is beyond the free support I'm willing to give on the forum. I'll leave this thread open in case someone else wants to pip in with a suggestion.
  #11  
Old Jul 16, 2013, 06:59 AM
fullmetalgirl
 
32 posts · Aug 2010
Ok, thnx anyway for giving me some info in where to look for it....

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
I want to Trash Clickable Link On My Multi Page Post And Single Post binaymana Atahualpa 3 Wordpress theme 1 Nov 17, 2011 07:40 PM
Javascript added to Post/Page Info Items Footer for Multi Pages not inserted uppercut Post-Kicker, -Byline & -Footer 6 Oct 11, 2011 11:43 AM
How do I choose between Single Post Pages and Multi Post Pages? BradyKelly Atahualpa 3 Wordpress theme 2 Jan 3, 2010 05:17 AM
Home link doesn't show in multi-post pages mcgiver058 Page & Category Menu Bars 9 Sep 4, 2009 09:51 PM
Latest Comment From Each Post on Homepage And Multi-page pages noyell Post-Kicker, -Byline & -Footer 3 Aug 8, 2009 01:39 PM


All times are GMT -6. The time now is 04:24 AM.


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