jcprovideo
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Edit certain Permalinks for RSS feedAnyone…Buler?
Forum: Fixing WordPress
In reply to: PHP syntax is jacked. Using custom fields in a unique wayNevermind…I got it working. I had this:
<?php $jobtype = get_post_meta($post->ID, ‘job-type’, true); ?>
in the wrong place. Thanks for your help!Forum: Fixing WordPress
In reply to: PHP syntax is jacked. Using custom fields in a unique wayThanks OTTO42
Humm I still got problems though. this is what I have now. It is always pulling insert_cform (‘4’)
<?php if ($jobtype == 'web' ) { $jobresumetype = insert_cform ('4') ; } elseif ($jobtype == 'design') { $jobresumetype = insert_cform ('5') ; } elseif ($jobtype == 'copy') { $jobresumetype = insert_cform ('6') ; } else { $jobresumetype == '' ; } ?> <?php echo $jobresumetype; ?>
Forum: Fixing WordPress
In reply to: Edit certain Permalinks for RSS feedPerhaps I should rephrase. How does one go about customizing their RSS feed. Is there a template like index.php but for RSS?
Forum: Fixing WordPress
In reply to: Edit certain Permalinks for RSS feedHere is an example of how I did it on my search results (search.php)
<?php if ( in_category('3') ) { ?> <h3><a href="<?php bloginfo('url'); ?>/about/#<?php the_ID(); ?>" rel="bookmark" title="Permanent Link to About Page"> <?php the_title(); ?> </a></h3>
Forum: Fixing WordPress
In reply to: Conditional for Page template? if ( is_ page templateSweet…I was pretty close with my first guess. Thanks Otto42!
doodlebee, I was referring to page template not page. is_page_template(‘portfolio.php’)
Thanks All!
Forum: Fixing WordPress
In reply to: Conditional for Page template? if ( is_ page templateOh the reason I am doing it this way is so that I don’t have to touch the PHP every time a ned page is added. Doing a standard if (is_page (‘portfolio’) would make me have to touch the PHP every time a new page is added.
I found this code on a guys site. Gonna see if I can plug in it. Let me know if anyone else has any solutions.
function is_page_template($template = 'portfolio.php') { if (!is_page()) { return false; } global $wp_query; $page = $wp_query->get_queried_object(); $custom_fields = get_post_custom_values('_wp_page_template',$page->ID); $page_template = $custom_fields[0]; // We have no argument passed so just see if a page_template has been specified if ( empty( $template ) ) { if (!empty( $page_template ) ) { return true; } } elseif ( $template == $page_template) { return true; } return false; }
Forum: Fixing WordPress
In reply to: conditional IF ELSE statements not workingthanks!
Forum: Fixing WordPress
In reply to: conditional IF ELSE statements not workingThanks that helped… I got it working. I had my PHP all wrong. Here is what I ended up with.
<?php if (is_home()) { include (TEMPLATEPATH . '/regularsidebar.php'); } elseif (is_category()) { include (TEMPLATEPATH . '/regularsidebarsidebar.php'); } elseif (is_single()) { include (TEMPLATEPATH . '/regularsidebarsidebar.php'); } elseif (is_page()) { if (is_page('homepage')) { include (TEMPLATEPATH . '/homesidebar.php'); } elseif (is_page('contact')) { include (TEMPLATEPATH . '/contactsidebar.php'); } else { include (TEMPLATEPATH . '/regularsidebar.php'); } } else { include (TEMPLATEPATH . '/regularsidebar.php'); } ?>
Forum: Fixing WordPress
In reply to: conditional IF ELSE statements not workingBasically what I’m trying to accomplish is display a generic sidebar for all other pages…i.e. search archives, tags, cats etc.
Forum: Fixing WordPress
In reply to: Changing permalinks to allways point to another pageAnyone?
Forum: Fixing WordPress
In reply to: Changing permalinks to allways point to another pageOr is there a way to basically to write some PHP code on the search page:
if cat=8
echo url = https://www.example.com/about
Forum: Fixing WordPress
In reply to: Changing permalinks to allways point to another pageCould this be done in the in the database? Basically change the URL?
Forum: Fixing WordPress
In reply to: Changing permalinks to allways point to another pageCool I didn’t think of that. Ok but, is there not a way to do this through PHP? Perhaps through a custom search results page? Thanks for your help!
Forum: Fixing WordPress
In reply to: Category Posts Filters & Tag Filters via dropdown menuu serious…its that easy… Man I suck. Thanks for your help!