GithubHelp home page GithubHelp logo

Comments (16)

kb6673 avatar kb6673 commented on September 21, 2024

I solved this issue by adding a wp_redirect to the archive-slug.php page

from magic-fields-2.

gleenk avatar gleenk commented on September 21, 2024

? what? This is not the problem I was talking about. In MF 1 It was possible to add fields to only 1 single page.

from magic-fields-2.

gnuget avatar gnuget commented on September 21, 2024

yeah you are right.

This feature is missing in magic fields 2

We will work on this thank you.

from magic-fields-2.

leocaseiro avatar leocaseiro commented on September 21, 2024

You can use the WP_Query and the home.php file for that:

Saves in home.php file and the WordPress load this file at Home automaticaly:

//home.php
` 'your_custom_post_name', //...if other params, insert here ); ?>

have_posts()) : while($query->have_posts()) : $query->the_post(); ?>
<h1><?php the_title(); //see your posts here ?></h1>
<h1>Not Found</h1>
`

from magic-fields-2.

Dermotholmes avatar Dermotholmes commented on September 21, 2024

+1

from magic-fields-2.

reaxion avatar reaxion commented on September 21, 2024

I was going to post similar but was told this is the same, so I'll restate my suggestion with is the same but more literal:

We need the ability to have a post Single instead of Multiple in Magic Fields 2.0

But I'm told this is in the works for the next release!

Thanks!
Scott

from magic-fields-2.

leocaseiro avatar leocaseiro commented on September 21, 2024

I agree with this feature! Magic Fields in post Single or Post Page specific

Best Regards,

Leo Caseiro

from magic-fields-2.

gleenk avatar gleenk commented on September 21, 2024

Yeah! :P Just for fun. I'm happy for my contribute LOL. Good Work guy!

from magic-fields-2.

leocaseiro avatar leocaseiro commented on September 21, 2024

@gleenk, I'm sorry, but I'm not part of the Magic Fields team. I'm just a contributor.

But I will try add this feature and I hope the team merge it.

Best Regards,

Leo Caseiro

from magic-fields-2.

gleenk avatar gleenk commented on September 21, 2024

Great Leo! I think you were a member of the team...

from magic-fields-2.

robertcedwards avatar robertcedwards commented on September 21, 2024

@leocaseiro Does that code example work with Magicfields 2?
I can't seem to get it to work in my template.

from magic-fields-2.

leocaseiro avatar leocaseiro commented on September 21, 2024

Hi @robertcedwards, Please try use this solution: #53 (comment)

from magic-fields-2.

TinekeinTOWN avatar TinekeinTOWN commented on September 21, 2024

Hi There, is there any news on this> adding fields to a single page (or displaying only 1 post, not a list of posts)?
It's not just the frontside where I need it, it's about the admin menus.

Example:

Menu = Couple (should be 1 page including custom fields) < I only have a post editor there now, but desperately need to add fields, without effecting all standard pages...

SubMenu: The man
SubMenu: The woman
(submenu's could be posts -even though preferring pages- since no more posts should be added here)

from magic-fields-2.

leocaseiro avatar leocaseiro commented on September 21, 2024

Hi @TinekeinTOWN, try use the plugin Menu Editor for modify your menus.

http://wordpress.org/extend/plugins/admin-menu-editor/

from magic-fields-2.

maxisosa avatar maxisosa commented on September 21, 2024

Hi! There is news: hunk/Magic-Fields#151

from magic-fields-2.

gnuget avatar gnuget commented on September 21, 2024

yeah, i don't sure why this issue is still open, this feature is already in the stable version

:-)

from magic-fields-2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.