djdeejay
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Possible to send a custom field off for external php processing?Thanks jnhghy,
Would this require a custom plugin, or is it something you can do more easily with a few hacks to a theme?
Im guessing there isn’t already a plugin for this?
Forum: Fixing WordPress
In reply to: Possible to send a custom field off for external php processing?Excellent, I thought that might be a step too far.
Just to make it even more complicated would it be possible for it to retain the original field data – and populate a new custom field with the data returned from the php script.
You would then make it so logged in users saw the original custom field and non-logged in users would see the field with the data returned from the php script?
Would anyone have such a plugin to share? Thats a little beyond my coding abilities and if its already been done…?
For the record this is the code in the theme which creates the meta box in the custom post type of “portfolio”. Would the set_post_values filter work for this upon first glance?
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
Guys I have a theme that users a custom post type which has its own meta box – it appears they are setup as arrays somehow. I really need gravity forms to talk to these boxes as ive got everything else working but i need these boxes in.
Did you ever add this option/hack to the plugin?
Forum: Themes and Templates
In reply to: Can anyone help me get pagination working correctly in my theme.Ok lets see.
Here is the code on my custom page template for the homepage that calls the posts.
<!-- posts grid --> <?php query_posts( array( 'cat' => 9, 'posts_per_page' => 3, 'paged' => get_query_var('page'))); ?> <?php } ?> <?php if ( of_get_option('blog_layout') == "0" ) { get_template_part('loop', 'grid'); } else { get_template_part('loop'); } ?> <?php wp_reset_query() ?>
Is there anything there, which would stop the code in the loop from working?
Or rather…
Here is the code in my OTHER pages which call the posts where I want the pagination to REMAIN. Eg these are NOT my home page. This is the code on their page.
<?php query_posts( array( 'category_name' => writing, 'posts_per_page' => 3, 'paged' => get_query_var('paged'))); ?> <?php } ?> <?php if ( of_get_option('blog_layout') == "0" ) { get_template_part('loop', 'grid'); } else { get_template_part('loop'); } ?> <?php wp_reset_query() ?>
Basically the same, but with the category changed and the word “page” changed to “paged” in the query for the non-homepage pages. Could this be something to do with the loop?
Forum: Themes and Templates
In reply to: Can anyone help me get pagination working correctly in my theme.“demoing” = removing
Forum: Themes and Templates
In reply to: Can anyone help me get pagination working correctly in my theme.Really thought it had worked then, but its back to just demoing pagination on every page… ??
Forum: Themes and Templates
In reply to: Can anyone help me get pagination working correctly in my theme.Unexpected ‘:’ apparently.
Forum: Themes and Templates
In reply to: Can anyone help me get pagination working correctly in my theme.Ok, well I tried the code above and now I’m just getting syntax errors…
Im not sure why it didn’t work originally, this seems like a no go-er for some reason…
Forum: Themes and Templates
In reply to: Can anyone help me get pagination working correctly in my theme.No I wasn’t, I don’t know what the “echo” part it supposed to do in this code…I don’t know PHP only enough to blag my way through…I think you’re assuming a level of knowledge here with short answeres thats probably making it 5x longer to get to the finish.
What is the ‘echo’ part for? Displaying text somewhere? Where and why…you need to explain to me what this extra part does and why it should work or I’m just stabbing in the dark.
Im entering this into my loop-grid.php. I’ll reiterate before, will “is_home” commands work from inside the loop?
Forum: Themes and Templates
In reply to: Can anyone help me get pagination working correctly in my theme.Ok, I entered this…
<?php if(( is_home() || is_front_page() ) && !is_paged() ) echo 'Boo!'; pagination();?>
But it doesn’t work. Pagination isn’t broken like it was in the first one now, but instead it works everywhere, including on the home page as if it was just the standard <?php pagination(); ?> code.
Forum: Themes and Templates
In reply to: Can anyone help me get pagination working correctly in my theme.Where do I need to put that in relation to <?php pagination(); ?> in the loop esmi?
Forum: Themes and Templates
In reply to: Can anyone help me get pagination working correctly in my theme.Argh, I thought that had cracked it.
It does work in that it removes pagination from the homepage…but only because it removes it from everywhere – as if I’ve just deleted the <?php pagination(); ?> line.
Forum: Themes and Templates
In reply to: Can anyone help me get pagination working correctly in my theme.esmi – the pagination() is part of my themes custom loop (loop-grid.php) and it relates to a plugin thats built into the theme (rather than on the plugin page)
I thought there might be a simple way to wrap pagination() in some php code which tells it not to run if its on the front page…although not sure if the loop sequence would know if it was the front page or not?
I suppose another way would be to duplicate loop-grid.php and remove the <?php pagination(); ?> bit which works and tell that specific page to use the alternative loop – however I’m stumped as to how to do that easily and quickly either…
Forum: Themes and Templates
In reply to: Can anyone help me get pagination working correctly in my theme.esmi.
In my custom loop here is the pagination code at the bottom.
<?php pagination(); ?>
Is there a way to modify this so the pagination code is remove if it is the “front page”?