Site logo

php

PHP Notice about Page-Header

Hi Tom, i have a lot of notice with like this PHP Notice: Trying to get property of non-object in /var/www/vhosts/mydomain.ext/httpdocs/wp-content/plugins/gp-premium/addons/generate-page-header/inc/functions.php on line 62 Is it possibile to solve it ? Regards

insert php nav links location

I am using a PHP insertion plugin to show posts in a certain category on a certain page. I have the page with some blurb about the category and it then shows the last 3 blog post from that category underneath. What I want is the pagination links to appear at the bottom of the … Read more

Hooks

Hi Tom, I’m building a site as we speak and want to add in some PHP code via the HOOKS add-on ‘after header’. I’ve used this before to add in HTML code and has worked perfectly, but in this instance I’d like to only have the hook appear on the front page. What I am … Read more

Include php code on static page using GP sections … ?

Hi, Just a quick question, and again I apologise if it’s been asked or answered before! I’m creating a static landing page using the GP sections plugin and was wondering how I go about including the most recent blog post in one of the sections? I’ve tried adding the following code but it essentially comments … Read more

php & shortcode help

First, thank you Tom for awesome support and helping me before with displaying header images based on post category!! Also, the add-ons are great. I’m stumped trying to use GP Hooks with the Advanced Post Slider plugin. I read several other forum posts, and what worked for them doesn’t seem to be working for me. … Read more

Hook on first page only

Hi, I have some code in the GP Hook which shows on my homepage (as a ‘Welcome’ bit which is static and displays above the posts which show on the homepage). I am wondering whether there is a piece of code I can use to make sure this only displays on the first page of … Read more

After content hook (php) not working?

I’ve got this code in my After Content GP hook with Execute PHP enabled. But it doesn’t work. However, if I insert the same code into the content-single.php template file (after <?php the_content(); ?>) then it works fine. <ul> <?php $taxonomy = 'category'; // get the term IDs assigned to post. $post_terms = wp_get_object_terms( $post->ID, … Read more