-
AuthorPosts
-
October 8, 2014 at 7:20 pm #332636
I need to display some kind of posts not in single pages, but to display them in an archive-like page with a collapsible list. Therefore I had to make some modifications in magazine.php. My modifications:
function render_entry($entry, $style) { $output = ""; $image = get_the_post_thumbnail( $entry->ID, $this->atts['image_size'][$style] ); $link = get_permalink($entry->ID); /* START MODIFIKATION ----------------------------------- // $titleAttr = "title='".__('Link to:','avia_framework')." ".the_title_attribute('echo=0')."'"; // DELETED end delete, continue modification: ---------------------- */ $titleAttr = "title='".get_the_title($entry->ID)."'"; // new $titleid = $entry->ID; // new if( get_the_ID() == '2' ) { // new ( if magazine at hompage ) $title = "<a href='http://www.timegolf.net/_news/#news-".$titleid."?news=".$titleid."' {$titleAttr}>".get_the_title($entry->ID)."</a>"; // new } // new else { // new interrupt modification: -------------------------------------- */ $title = "<a href='{$link}' {$titleAttr}>".get_the_title($entry->ID)."</a>"; end interrupt , continue modification: ---------------- */ } // new END MODIFICATION---------------------------------------- */
The page works properly, if it is called by a simple link (“/page/”) or with only one attribute behind the url (/page/#anchor or /?get_var=id).
Screenhot:
Unfortunately I need both: hash tags for deep-linking to the specific item AND the id, to open the called up item by javascript. In that case the second tab in the left column loses its position and clicking at it does not work anymore.
Screenshots:
I have no idea, how to solve this tricky problem.
Please help me!
GünterOctober 9, 2014 at 5:08 am #332896Hey Günter!
Thank you for using Enfold.
I’m sorry but this kind of modification falls beyond the scope of support. You might need to hire a freelance developer to add the feature for you. Please visit Envato Studio or Werkpress for further customization. You can also vote or request the feature on our Feature Requests page.
Best regards,
IsmaelOctober 9, 2014 at 7:02 pm #333401Hi Ismael,
he problem is solved.I could reach my goals with only one hashtag. Everything works fine.
Thank You!
Günter -
AuthorPosts
- The topic ‘Problem with Strings in magazine.php?’ is closed to new replies.