Twanneman
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Post to PDF] background-imageNo problem! I’m glad you solved it!
Forum: Plugins
In reply to: [WP Favorite Posts] Limit the number of favorites?I created a fork with support to limit the maximum amount of favorites. You can find it here: https://github.com/Twanneman/wp-favorite-posts/
Forum: Plugins
In reply to: [WP Favorite Posts] Limit the number of favorites?I also want to limit the maximum amount of favorites.
@ energykick did you found a solution?Forum: Plugins
In reply to: [WP Post to PDF] background-imagenever mind, already figured it out :
I’ve added the following line
if(!class_exists('MYPDF')) { require_once(WPPT0PDF_PATH . '/tcpdf/background.php'); }
after :
if(!class_exists('TCPDF')) { require_once(WPPT0PDF_PATH . '/tcpdf/tcpdf.php'); }
and placed these lines in a new file background.php located in the tcpdf folder :
<?php // Extend the TCPDF class to create custom Header and Footer class MYPDF extends TCPDF { //Page header public function Header() { // get the current page break margin $bMargin = $this->getBreakMargin(); // get current auto-page-break mode $auto_page_break = $this->AutoPageBreak; // disable auto-page-break $this->SetAutoPageBreak(false, 0); // set bacground image $img_file = WPPT0PDF_PATH .'/tcpdf/images/background.jpg'; $this->Image($img_file, 0, 0, 210, 297, '', '', '', false, 300, '', false, false, 0); // restore auto-page-break status $this->SetAutoPageBreak($auto_page_break, $bMargin); // set the starting point for the page content $this->setPageMark(); } } ?>
The image file is 1181px by 1772px and located in the tcpfg/images folder
Forum: Fixing WordPress
In reply to: get_term_link: listing portfolio subcategoriesI’ve fixed it!
Adding “?post_type=portfolio” to the links made them work ?? See the code below :<?php //List all the portfolio categories in the portfolio category, except the excluded one echo '<ul class="nav nav-list">'; $exclude_cat = get_post_meta($post->ID, 'ydcoza_exclude_cat', true); $terms = get_terms('portfolio_category', 'hide_empty=1'); foreach($terms as $term) { if ($term->slug != $exclude_cat){ echo '<li><a href="'.get_term_link($term->slug, 'portfolio_category').'?post_type=portfolio"><i class="'.$term->description.' icon-large"></i> '.$term->name.'</a></li>'; } } echo '</ul>'; ?>
Forum: Fixing WordPress
In reply to: get_term_link: listing portfolio subcategoriesanyone???
Forum: Fixing WordPress
In reply to: Page TemplateThank you, I found the problem.
I just switched between themes and then the template page box and permalink input field showed up ??
Forum: Fixing WordPress
In reply to: Page TemplateI’m also searching for this, anyone ?