New answers tagged

1

This sounds like the wrong way around and always having the danger of forgetting or misconfiguring something. If you need content separation, just use a network install. It has a little more overhead of admin but it out of the box ensures the content separation you seek.


0

Just to chime in, we use a plugin called ProfilePress (http://wordpress.org/plugins/ppress/) and couldn't be happier with it. It's actually a shortcode based WordPress form builder for creating custom login, registration and password reset forms at the front-end of your site.


1

Alright, there's a few things that isn't standardized WordPress so I've put together a minimal script which I'll explain piece by piece. Hopefully clear things up for you by the time you get to the end. HTML Form Below is a very simple HTML form. We're going to use javascript to listen for submission and stop it from actually refreshing the page but that ...


0

This is in my single.php: <div class="sp-article-author-box-bg"> <div class="sp-article-author-box"> <span class="spbox-right"> <div class="spbox-bio"> <?php if ( $string = xprofile_get_field_data( 'About', get_the_author_meta('ID') ) ) { echo ...


0

I am using a custom_function() to insert the post, the form redirects the user to a different page, that page has it's own ID and that's why I couldn't get this to work. In my case worked declaring this in my template: if( $_POST) { $post_ID = custom_function(); } Then i can use $post_ID to get the custom data I needed from that post.


2

Ok. I resolved it in this way. Let's say that we have a CSS-file rtl.css, which contains rules for right-to-left content direction. Add menu items: Appearance->Menus->Select a menu to edit->Edit menus->Custom links. URL - ?language=rlt (or something like this), Link text - RTL (for example) URL - ?language=ltr, Link text - LTR Create a plugin: ...


1

wp_insert_post() returns either one of three things the newly created post's ID a WP_Error object if $wp_error is set to true if an error occured during post insertion in which case the post is not inserted 0 if $wp_error is set to false (default) if an error occured during post insertion in which case the post is not inserted The following should work ...


2

Note: I am posting an answer to my own question with hopes of it being useful for developers trying to solve the same problem that my initial query proposes. As it turns out, I was viewing this with the wrong lens. The solution was not to add my entire AngularJS app and use that while trying to disguise the WordPress front-end and themes. The solution is ...


0

Wordpress supports quite a few embeds including YouTube since WordPress 2.9. To render anywhere, just pass your content through the_content filter and it should automatically convert the urls. $oembedContent = apply_filters( 'the_content', $basicContent ); If the defaults don't meet your needs you can add an oEmbed-Enabled site using ...



Top 50 recent answers are included