ecsancho
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Deep linking seamless website?Thanks for the response and I’m aware of infinite scroll but the functionality I’m looking for is more transitioning/animation to the next page without reloading a new page, no scrolling necessary.
If you click on the link I provided and click on awards or social at the top nav and you’ll see what I mean. Thanks again.
Forum: Fixing WordPress
In reply to: Is it possible to save random data to DB?I see there’s add_post_meta() problem with that it depends on a post to exist in DB.
Forum: Fixing WordPress
In reply to: get_excerpt() returns empty stringSolved it by using setup_postdata( $p ); echo get_the_excerpt();
Forum: Fixing WordPress
In reply to: Issue with json_encode(array) only returning 5 resultsOk I figured it out, it was because js var posts which I had declared somewhere else. Thanks Andrew for the swift replies
Forum: Fixing WordPress
In reply to: Issue with json_encode(array) only returning 5 resultsI placed the same code from 3rd post into the index.php and the encoding is working fine, so its only when it’s in the themes/customize which is
add_action( ‘customize_register’, ‘themename_customize_register’ ); hook
that encoding is not working.Forum: Fixing WordPress
In reply to: Issue with json_encode(array) only returning 5 resultsi’ll give that a shot, because page I’m working in themes/customize section and I’ve ran into another bug with jquery when I’m in that section. It says it’s available but none of the jquery functions work which is another bug I have to look into haha.
Forum: Fixing WordPress
In reply to: Issue with json_encode(array) only returning 5 resultsWhat’s the best method to convert php array to javascript?
Forum: Fixing WordPress
In reply to: Issue with json_encode(array) only returning 5 resultsin my var_dump() shows all 8 post. I copy the result and scan for “post_author” and retuns 8.
in php when i do $a = json_encode($posts_array); count($a) //8
So it looks like it works in php and then printing json_encode() to javascript only returns 5.
Forum: Fixing WordPress
In reply to: Issue with json_encode(array) only returning 5 resultsJS function to print from json to js
var posts = <?php echo (array) json_encode($posts_array, 20); ?>;php scripts to get all post
$posts_array = get_posts(array(‘showposts’=> -1, ‘posts_per_page’ => -1, ‘numberposts’=>-1));I believe it’s the printing to javascript var phase that is failing. Thanks again
Forum: Fixing WordPress
In reply to: Query post by dateSuper helpful! Super Thanks!
Forum: Fixing WordPress
In reply to: Adding a feature category functionalityCool thanks for response. Now is the workflow I mention above the correct way of adding the Feature Category through admin side correct?