72 reputation
7
bio website
location
age
visits member for 1 year
seen Jul 20 at 10:25

Jul
15
comment get video from content
Btw, were did you take this regexp? And do you have a regexp if post doesn't conteint iframe (just youtube link directly in the post, becaues currently users use this method to insert youtube videos)?
Jul
13
accepted get video from content
Jul
13
comment get video from content
I have modified my question a bit. I am not sure that this is enough.
Jul
13
revised get video from content
added 343 characters in body
Jul
12
asked get video from content
Jul
11
comment Unable to show recent custom post types in default recent posts widget
I have 3.9.1 version. Even if there would not be widget_posts_args, I tried to modify default-widget.php directly and it doens't work. Very strange. For quick fix I have created my custom function call inside sidebar.php where I display recent posts using my custom code. And here it works.
Jul
11
comment Unable to show recent custom post types in default recent posts widget
I have edited my questoin adding register post type example. I am adding it inside functions.php.
Jul
11
revised Unable to show recent custom post types in default recent posts widget
added 1189 characters in body
Jul
10
asked Unable to show recent custom post types in default recent posts widget
Jul
3
revised creating files for displaying different custom post type posts with paging
deleted 10 characters in body
Jul
3
comment creating files for displaying different custom post type posts with paging
I have changed it to front page displays. And it has custom logic, displaying recent posts for different custom post types. However, I now need seperate page that will show all posts. And I do not understand how to navigate it (no problems with creating php loop, showing content etc., bet I have problem with navigating to the correct file).
Jul
2
comment creating files for displaying different custom post type posts with paging
Another question- for default archive page for post type "post" is home.php, what link would be used to rout to it? For testing purposes, I have created simple home.php and I cannot navigate there.
Jul
2
comment creating files for displaying different custom post type posts with paging
Can you, please, explain this "However, common practices are different. What most of the people does is to make the index.php file adoptable. So regardless of post type, it display posts simply." How you mean this? Currently my index.php is never called at all.
Jul
1
asked creating files for displaying different custom post type posts with paging
Jun
29
comment Add Incrementing ID to each paragraph in the_content
What are you trying to do with your code? You are looping via characters of content? Give code above for loop.
Jun
29
accepted modify youtube video size on one page and show another size on different page
Jun
29
comment modify youtube video size on one page and show another size on different page
And another thing is that unfourtunately $embed_code = wp_oembed_get( $url ); is very very slow and even never ends or something (tested on local computer). This occures with any video link.
Jun
29
comment modify youtube video size on one page and show another size on different page
It should be $video_loop->post instead of $post.
Jun
25
comment modify youtube video size on one page and show another size on different page
Regexp $pattern has some error, I have found another pattern. And $post->content is not defined, what should be instead there?
Jun
23
comment modify youtube video size on one page and show another size on different page
Can you give me more detailed example? I am new to WP, so probably do not understand you so well.